listFromJson static method

List<RecognitionMode> listFromJson(
  1. List json
)

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

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

Implementation

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