Frequency.fromJson constructor

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

Implementation

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