3 declare(strict_types=1);
39 private static $discriminatorClasses = [
40 'ImageProcessingOngoing' => ImageProcessingOngoingWarningModel::class,
62 if (is_null($this->code)) {
64 $data = $this->
raw(self::FIELD_CODE);
68 $this->code = (string) $data;
82 if (is_null($this->message)) {
84 $data = $this->
raw(self::FIELD_MESSAGE);
88 $this->message = (string) $data;
112 if (is_object($value) && isset($value->$fieldName)) {
114 $discriminatorValue = $value->$fieldName;
115 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
116 return self::$discriminatorClasses[$discriminatorValue];
119 if (is_array($value) && isset($value[$fieldName])) {
121 $discriminatorValue = $value[$fieldName];
122 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
123 return self::$discriminatorClasses[$discriminatorValue];
128 $type = WarningObjectModel::class;