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