fromJson static method
Decodes a ChannelResize.
Implementation
static ChannelResize fromJson(int? channel, Map<String, dynamic> d) =>
ChannelResize(
channel: channel ?? (throw _missingChannel(typeName)),
cols: Json.optInt(d, 'cols', 80)!,
rows: Json.optInt(d, 'rows', 24)!,
);