def deserialize_ofp_phy_port(cls, json_dict):
  assert json_dict['__type__'] == class_fullname(cls)
  json_dict.pop('__type__')
  port = cls(**json_dict)
  return port

# Monkey patching
De-Serializes JSON Dict to OpenFlow physical port
dataset/ETHPy150Open ucb-sts/sts/sts/entities/base.py/deserialize_ofp_phy_port