fromJson static method

MessageProtobuf fromJson(
  1. dynamic json
)

Implementation

static MessageProtobuf fromJson(dynamic json) {
  return MessageProtobuf(
    uid: json['uid'],
    type: json['type'],
    content: json['content'],
    status: json['status'],
    createdAt: json['createdAt'],
    client: json['client'],
    extra: json['extra'],
    //
    thread: ThreadProtobuf.fromJson(json['thread']),
    user: UserProtobuf.fromJson(json['user']),
  );
}