SerialPortOutput.fromJson constructor
SerialPortOutput.fromJson(
- Object? j
Implementation
factory SerialPortOutput.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return SerialPortOutput(
contents: switch (json['contents']) {
null => null,
Object $1 => decodeString($1),
},
kind: switch (json['kind']) {
null => null,
Object $1 => decodeString($1),
},
next: switch (json['next']) {
null => null,
Object $1 => decodeInt64($1),
},
selfLink: switch (json['selfLink']) {
null => null,
Object $1 => decodeString($1),
},
start: switch (json['start']) {
null => null,
Object $1 => decodeInt64($1),
},
);
}