'Convert to a json-serializable representation.
Returns:
dict: A dict representation that is json-serializable.'

def to_json(self):

    serialized = super(StudioValidationMessage, self).to_json()
    if hasattr(self, 'action_label'):
        serialized['action_label'] = self.action_label
    if hasattr(self, 'action_class'):
        serialized['action_class'] = self.action_class
    if hasattr(self, 'action_runtime_event'):
        serialized['action_runtime_event'] = self.action_runtime_event
    return serialized
