factory FrequencyBandwidth.fromJson(Map<String, dynamic> json) { return FrequencyBandwidth( units: (json['units'] as String).toBandwidthUnits(), value: json['value'] as double, ); }