listFromJson static method

List<DotCodeEncodeMode> listFromJson(
  1. List json
)

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

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

Implementation

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