Eirp.fromJson constructor

Eirp.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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