listFromJson static method

List<GraphicsUnit> listFromJson(
  1. List json
)

Converts a list of JSON objects to a list of GraphicsUnit instances.

@param json The list of JSON objects to convert. @return A list of GraphicsUnit instances.

Implementation

static List<GraphicsUnit> listFromJson(List<dynamic> json) {
  return json.map((value) => GraphicsUnit.fromJson(value)).toList();
}