toJson method
Implementation
Map<String, dynamic> toJson() => {
if (redirectUrl != null) 'redirectUrl': redirectUrl,
if (text != null) 'text': text,
if (documents != null) 'documents': documents,
if (refId != null) 'refId': refId,
};