fromJson static method

Message fromJson(
  1. dynamic json
)

Implementation

static Message fromJson(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['threadTopic'],
    user: json['user'] != null ? UserProtobuf.fromJson(json['user']) : null,
  );
}