fromJson static method

UserProtobuf fromJson(
  1. dynamic json
)

Implementation

static UserProtobuf fromJson(dynamic json) {
  return UserProtobuf(
    uid: json['uid'],
    nickname: json['nickname'],
    avatar: json['avatar'],
  );
}