GetTerminalReadersReaderResponse.fromJson constructor

GetTerminalReadersReaderResponse.fromJson(
  1. Object? json
)

Implementation

factory GetTerminalReadersReaderResponse.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  final type = (map['object'] as String);
  final factory = $mapping[type];
  if (factory == null) {
    throw ArgumentError(
        'Unknown type of GetTerminalReadersReaderResponse: "$type"');
  }
  return factory(map);
}