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