MessageModel.fromJson constructor

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

Implementation

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