GelatoVerificationReportOptions.fromJson constructor

GelatoVerificationReportOptions.fromJson(
  1. Object? json
)

Implementation

factory GelatoVerificationReportOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return GelatoVerificationReportOptions(
    document: map['document'] == null
        ? null
        : GelatoReportDocumentOptions.fromJson(map['document']),
    idNumber: map['id_number'] == null
        ? null
        : GelatoReportIdNumberOptions.fromJson(map['id_number']),
  );
}