Messages.fromJson constructor
Messages.fromJson(
- Map<String, dynamic> json
)
Implementation
Messages.fromJson(Map<String, dynamic> json) {
type = json['type'];
isDeleted = json['isDeleted'];
createdAt = json['createdAt'];
editedAt = json['editedAt'];
channelSegment = json['channelSegment'];
updatedAt = json['updatedAt'];
childrenNumber = json['childrenNumber'];
channelId = json['channelId'];
userId = json['userId'];
messageId = json['messageId'];
flagCount = json['flagCount'];
reactionsCount = json['reactionsCount'];
reactions = json['reactions'] != null
? new Reactions.fromJson(json['reactions'])
: null;
data = json['data'] != null ? new Data.fromJson(json['data']) : null;
}