ListMessageModel.fromJson constructor

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

Implementation

ListMessageModel.fromJson(Map<String, dynamic> json) {
  attachment = json['attachment'] != null
      ? new Attachment.fromJson(json['attachment'])
      : null;
  channel = json['channel'];
  sentTimestamp = json['sent_timestamp'];
  user = json['user'];
  to = json['to'];
  sessionId = json['sessionId'];
  type = json['type'];
  sId = json['_id'];
}