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