Bandwidth.fromJson constructor

Bandwidth.fromJson(
  1. Object? json
)

Implementation

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