GelatoSelfieReport.fromJson constructor

GelatoSelfieReport.fromJson(
  1. Object? json
)

Implementation

factory GelatoSelfieReport.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return GelatoSelfieReport(
    document: map['document'] == null ? null : (map['document'] as String),
    error: map['error'] == null
        ? null
        : GelatoSelfieReportError.fromJson(map['error']),
    selfie: map['selfie'] == null ? null : (map['selfie'] as String),
    status: GelatoDocumentReportStatus.fromJson(map['status']),
  );
}