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