listFromJson static method

List<PatchFormat> listFromJson(
  1. List json
)

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

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

Implementation

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