XrayAddress.fromJson constructor

XrayAddress.fromJson(
  1. Object? json
)

Implementation

factory XrayAddress.fromJson(Object? json) {
  if (json is String) {
    return XrayAddress(json);
  }
  throw FormatException('invalid address: $json');
}