public static function createFromJSON($json_obj) { $parent = parent::createFromJSON($json_obj); if (!empty($parent->state)) { $parent->state = InputControlState::createFromJSON($parent->state); } return $parent; }
public static function createFromJSON($json_obj) { $parent = parent::createFromJSON($json_obj); if (!empty($parent->properties)) { $parent->properties = (array) $parent->properties; } return $parent; }
public static function createFromJSON($json_obj) { $parent = parent::createFromJSON($json_obj); if (!empty($json_obj->options)) { unset($parent->options); foreach ($json_obj->options as $option) { $parent->options[] = (array) $option; } } return $parent; }