GearChoice.fromJson constructor

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

Implementation

factory GearChoice.fromJson(Map<String, dynamic> json) => GearChoice(
      key: json["key"],
      description: json["description"],
      selections:
          List<GearSelection>.from(json["selections"].map((x) => GearSelection.fromJson(x))),
      preselect: List<int>.from(json['preselect']),
      maxSelections: json['maxSelections'],
    );