IdentityVerificationSessionUpdateOptions.fromJson constructor
IdentityVerificationSessionUpdateOptions.fromJson(
- Object? json
Implementation
factory IdentityVerificationSessionUpdateOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return IdentityVerificationSessionUpdateOptions(
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
metadata: map['metadata'] == null
? null
: (map['metadata'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
(value as String),
)),
options: map['options'] == null
? null
: VerificationSessionOptions.fromJson(map['options']),
type: map['type'] == null
? null
: IdentityVerificationReportType.fromJson(map['type']),
);
}