76 if (is_object($value) && isset($value->$fieldName)) {
78 $discriminatorValue = $value->$fieldName;
79 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
80 return self::$discriminatorClasses[$discriminatorValue];
83 if (is_array($value) && isset($value[$fieldName])) {
85 $discriminatorValue = $value[$fieldName];
86 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
87 return self::$discriminatorClasses[$discriminatorValue];
92 $type = HttpDestinationAuthenticationModel::class;