listFromJsonArray static method

List<MessageEntity> listFromJsonArray(
  1. List json
)

Creates a list of object from a json array

Implementation

static List<MessageEntity> listFromJsonArray(List<dynamic> json) {
  return List.generate(
    json.length,
    (i) => MessageEntity.fromJson(json[i]),
  );
}