ElementType.fromJson constructor

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

Implementation

factory ElementType.fromJson(Map<String, dynamic> json) => ElementType(
  id: json["id"],
  pluralName: json["plural_name"],
  pluralNameShort: json["plural_name_short"],
  singularName: json["singular_name"],
  singularNameShort: json["singular_name_short"],
  squadSelect: json["squad_select"],
  squadMinPlay: json["squad_min_play"],
  squadMaxPlay: json["squad_max_play"],
  uiShirtSpecific: json["ui_shirt_specific"],
  subPositionsLocked: List<int>.from(json["sub_positions_locked"].map((x) => x)),
  elementCount: json["element_count"],
);