toJson method

Future<Map<String, dynamic>> toJson(
  1. String? frontImage,
  2. String? backImage,
  3. String? sideImage,
  4. String documentType,
  5. String timeStamp,
)

Implementation

Future<Map<String, dynamic>> toJson(
  String? frontImage,
  String? backImage,
  String? sideImage,
  String documentType,
  String timeStamp,
) async {
  return <String, dynamic>{
    'frontImage_base64': frontImage,
    'backImage_base64': backImage,
    'sideImage_base64': sideImage,
    'documentType': documentType
  };
}