RouterStatusResponse.fromJson constructor
RouterStatusResponse.fromJson(
- Object? j
Implementation
factory RouterStatusResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return RouterStatusResponse(
kind: switch (json['kind']) {
null => null,
Object $1 => decodeString($1),
},
result: switch (json['result']) {
null => null,
Object $1 => RouterStatus.fromJson($1),
},
);
}