PreferredUnit.fromJson constructor

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

General constructor from JSON payload

Implementation

PreferredUnit.fromJson(Map<String, dynamic> json)
    : identifier = json['identifier'],
      unit = json['unit'];