def to_json(self): updated = Constraint.to_json(self) updated.update({ 'minVal' : self._min, 'maxVal' : self._max }) return updated
def to_json(self): updated = Constraint.to_json(self) updated.update({ 'regex' : self._regex, 'flags' : self._flags }) return updated
def to_json(self): updated = Constraint.to_json(self) updated.update({ 'values' : self._values, }) return updated
def to_json(self): updated = Constraint.to_json(self) updated.update({ 'constraint' : self._constraint.to_json() }) return updated
def to_json(self): updated = Constraint.to_json(self) updated.update({ 'constraints' : [constraint.to_json() for constraint in self._constraints] }) return updated