fromProtobufJson static method

Message fromProtobufJson(
  1. dynamic json
)

Implementation

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