ThreadMessagesListModel.fromJson constructor

ThreadMessagesListModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ThreadMessagesListModel.fromJson(Map<String, dynamic> json) => ThreadMessagesListModel(
  object: json["object"],
  data: List<Message>.from(json["data"].map((x) => Message.fromJson(x))),
  firstId: json["first_id"],
  lastId: json["last_id"],
  hasMore: json["has_more"],
);