RouterStatusResponse.fromJson constructor

RouterStatusResponse.fromJson(
  1. 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),
    },
  );
}