fromProto static method

UserProtobuf fromProto(
  1. Message messageProto
)

Implementation

static UserProtobuf fromProto(protomsg.Message messageProto) {
  return UserProtobuf(
    uid: messageProto.user.uid,
    nickname: messageProto.user.nickname,
    avatar: messageProto.user.avatar,
  );
}