toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'client_token': clientToken,
  'redirect_url': redirectUrl,
  'company_name': companyName,
  'documents': documents,
  if (panName != null && panName!.isNotEmpty) 'pan_name': panName,
  if (panNo != null && panNo!.isNotEmpty) 'pan_no': panNo,
  if (otherDocuments != null && otherDocuments!.isNotEmpty) 'other_documents': otherDocuments,
};