listFromJson static method

List<ApiErrorResponse> listFromJson(
  1. List json
)

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

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

Implementation

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