def __init__(self, protobuf_blockheader=None): """ >>> BlockHeader() is not None True """ self._data = protobuf_blockheader if protobuf_blockheader is None: self._data = qrl_pb2.BlockHeader()
def from_json(json_data): pbdata = qrl_pb2.BlockHeader() Parse(json_data, pbdata) return BlockHeader(pbdata)