MessageModel.fromJson constructor
Implementation
factory MessageModel.fromJson(Map<String, dynamic> json) => MessageModel(
ownerType: _of(json['ownerType']),
content: json['content'],
createdAt: json['createdAt'],
ownerName: json['ownerName'],
avatar: json['avatar'],
id: json['id'],
);