DisputeUpdateOptions.fromJson constructor
DisputeUpdateOptions.fromJson(
- Object? json
Implementation
factory DisputeUpdateOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return DisputeUpdateOptions(
evidence: map['evidence'] == null
? null
: DisputeEvidence.fromJson(map['evidence']),
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),
)),
submit: map['submit'] == null ? null : (map['submit'] as bool),
);
}