GelatoSelfieReportError.fromJson constructor
GelatoSelfieReportError.fromJson(
- Object? json
Implementation
factory GelatoSelfieReportError.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return GelatoSelfieReportError(
code: map['code'] == null
? null
: GelatoSelfieReportErrorCode.fromJson(map['code']),
reason: map['reason'] == null ? null : (map['reason'] as String),
);
}