fromJson static method

ThreadProtobuf fromJson(
  1. dynamic json
)

Implementation

static ThreadProtobuf fromJson(dynamic json) {
  return ThreadProtobuf(
    uid: json["uid"],
    topic: json["topic"],
    type: json["type"],
    status: json["status"],
    extra: json["extra"],
    //
    user: UserProtobuf.fromJson(json["user"]),
  );
}