fromJson static method

Thread fromJson(
  1. dynamic json
)

Implementation

static Thread fromJson(dynamic json) {
  return Thread(
    uid: json['uid'],
    topic: json['topic'],
    content: json['content'],
    type: json['type'],
    status: json['status'],
    //
    top: json['top'],
    unread: json['unread'],
    unreadCount: json['unreadCount'],
    mute: json['mute'],
    star: json['star'],
    folded: json['folded'],
    //
    client: json['client'],
    extra: json['extra'],
    //
    user: UserProtobuf.fromJson(json['user']),
    //
    updatedAt: json['updatedAt'],
  );
}