|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ private ?array $additionalData = null; /** * @var string|null $caseins Caséines (g/100g). */ private ?string $caseins = null; /** * @var string|null $essentialAminoAcids Acides aminés essentiels (total g/100g). */ private ?string $essentialAminoAcids = null; /** * @var string|null $wheyProtein Protéines de lactosérum (g/100g). */ private ?string $wheyProtein = null; /** * Instantiates a new IncoCompoAminoAcids and sets the default values. */ public function __construct() { $this->setAdditionalData([]); } /** * Creates a new instance of the appropriate class based on discriminator value * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object * @return IncoCompoAminoAcids */ public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoAminoAcids { return new IncoCompoAminoAcids(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return array|null */ public function getAdditionalData(): ?array { return $this->additionalData; } /** * Gets the caseins property value. Caséines (g/100g). * @return string|null */ public function getCaseins(): ?string { return $this->caseins; } /** * Gets the essentialAminoAcids property value. Acides aminés essentiels (total g/100g). * @return string|null */ public function getEssentialAminoAcids(): ?string { return $this->essentialAminoAcids; } /** * The deserialization information for the current model * @return array */ public function getFieldDeserializers(): array { $o = $this; return [ 'caseins' => fn(ParseNode $n) => $o->setCaseins($n->getStringValue()), 'essentialAminoAcids' => fn(ParseNode $n) => $o->setEssentialAminoAcids($n->getStringValue()), 'wheyProtein' => fn(ParseNode $n) => $o->setWheyProtein($n->getStringValue()), ]; } /** * Gets the wheyProtein property value. Protéines de lactosérum (g/100g). * @return string|null */ public function getWheyProtein(): ?string { return $this->wheyProtein; } /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('caseins', $this->getCaseins()); $writer->writeStringValue('essentialAminoAcids', $this->getEssentialAminoAcids()); $writer->writeStringValue('wheyProtein', $this->getWheyProtein()); $writer->writeAdditionalData($this->getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param array $value Value to set for the AdditionalData property. */ public function setAdditionalData(?array $value): void { $this->additionalData = $value; } /** * Sets the caseins property value. Caséines (g/100g). * @param string|null $value Value to set for the caseins property. */ public function setCaseins(?string $value): void { $this->caseins = $value; } /** * Sets the essentialAminoAcids property value. Acides aminés essentiels (total g/100g). * @param string|null $value Value to set for the essentialAminoAcids property. */ public function setEssentialAminoAcids(?string $value): void { $this->essentialAminoAcids = $value; } /** * Sets the wheyProtein property value. Protéines de lactosérum (g/100g). * @param string|null $value Value to set for the wheyProtein property. */ public function setWheyProtein(?string $value): void { $this->wheyProtein = $value; } }