def get_water_json(self):
     print("Printing JSON Object")
     print(WaterConnectionRequestEncoder().encode(self))
     water_encoder = WaterConnectionRequestEncoder().encode(self)
     return convert_json(json.loads(water_encoder), underscore_to_camel)
 def get_property_json(self):
     property_encoder = PropertyEncoder().encode(self)
     return convert_json(json.loads(property_encoder),
                         underscore_to_camel())
예제 #3
0
 def get_water_json(self):
     water_encoder = WaterEncoder().encode(self)
     return convert_json(json.loads(water_encoder), underscore_to_camel)