TerminalReaderSetReaderDisplayOptions.fromJson constructor
TerminalReaderSetReaderDisplayOptions.fromJson(
- Object? json
Implementation
factory TerminalReaderSetReaderDisplayOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TerminalReaderSetReaderDisplayOptions(
cart: map['cart'] == null ? null : ReaderCart.fromJson(map['cart']),
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
);
}