listFromJson static method

List<HanXinEncodeMode> listFromJson(
  1. List json
)

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

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

Implementation

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