toJson method
Implementation
Map<String, String> toJson(
Map<String, dynamic> userData,
Map<String, dynamic> idData,
String verificationSessionId,
String timeStamp,
) {
return <String, String>{
'email': userData['email'],
'phoneNumber': userData['phoneNumber'],
'documentIdentificationId': verificationSessionId,
'idInformation': jsonEncode(idData),
};
}