|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 $boundFructose The boundFructose property */ private ?string $boundFructose = null; /** * @var string|null $carbohydrateHydrates The carbohydrateHydrates property */ private ?string $carbohydrateHydrates = null; /** * @var string|null $freeFructose The freeFructose property */ private ?string $freeFructose = null; /** * @var string|null $galactose The galactose property */ private ?string $galactose = null; /** * @var string|null $glucose The glucose property */ private ?string $glucose = null; /** * @var string|null $inositol The inositol property */ private ?string $inositol = null; /** * @var string|null $lactose The lactose property */ private ?string $lactose = null; /** * @var string|null $maltodextrin The maltodextrin property */ private ?string $maltodextrin = null; /** * @var string|null $maltose The maltose property */ private ?string $maltose = null; /** * @var string|null $oligosaccharides The oligosaccharides property */ private ?string $oligosaccharides = null; /** * @var string|null $polyols The polyols property */ private ?string $polyols = null; /** * @var string|null $solubleFiber The solubleFiber property */ private ?string $solubleFiber = null; /** * @var string|null $starch The starch property */ private ?string $starch = null; /** * @var string|null $sucrose The sucrose property */ private ?string $sucrose = null; /** * Instantiates a new IncoCompoCarbohydratesDetail 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 IncoCompoCarbohydratesDetail */ public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoCarbohydratesDetail { return new IncoCompoCarbohydratesDetail(); } /** * 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 boundFructose property value. The boundFructose property * @return string|null */ public function getBoundFructose(): ?string { return $this->boundFructose; } /** * Gets the carbohydrateHydrates property value. The carbohydrateHydrates property * @return string|null */ public function getCarbohydrateHydrates(): ?string { return $this->carbohydrateHydrates; } /** * The deserialization information for the current model * @return array */ public function getFieldDeserializers(): array { $o = $this; return [ 'boundFructose' => fn(ParseNode $n) => $o->setBoundFructose($n->getStringValue()), 'carbohydrateHydrates' => fn(ParseNode $n) => $o->setCarbohydrateHydrates($n->getStringValue()), 'freeFructose' => fn(ParseNode $n) => $o->setFreeFructose($n->getStringValue()), 'galactose' => fn(ParseNode $n) => $o->setGalactose($n->getStringValue()), 'glucose' => fn(ParseNode $n) => $o->setGlucose($n->getStringValue()), 'inositol' => fn(ParseNode $n) => $o->setInositol($n->getStringValue()), 'lactose' => fn(ParseNode $n) => $o->setLactose($n->getStringValue()), 'maltodextrin' => fn(ParseNode $n) => $o->setMaltodextrin($n->getStringValue()), 'maltose' => fn(ParseNode $n) => $o->setMaltose($n->getStringValue()), 'oligosaccharides' => fn(ParseNode $n) => $o->setOligosaccharides($n->getStringValue()), 'polyols' => fn(ParseNode $n) => $o->setPolyols($n->getStringValue()), 'solubleFiber' => fn(ParseNode $n) => $o->setSolubleFiber($n->getStringValue()), 'starch' => fn(ParseNode $n) => $o->setStarch($n->getStringValue()), 'sucrose' => fn(ParseNode $n) => $o->setSucrose($n->getStringValue()), ]; } /** * Gets the freeFructose property value. The freeFructose property * @return string|null */ public function getFreeFructose(): ?string { return $this->freeFructose; } /** * Gets the galactose property value. The galactose property * @return string|null */ public function getGalactose(): ?string { return $this->galactose; } /** * Gets the glucose property value. The glucose property * @return string|null */ public function getGlucose(): ?string { return $this->glucose; } /** * Gets the inositol property value. The inositol property * @return string|null */ public function getInositol(): ?string { return $this->inositol; } /** * Gets the lactose property value. The lactose property * @return string|null */ public function getLactose(): ?string { return $this->lactose; } /** * Gets the maltodextrin property value. The maltodextrin property * @return string|null */ public function getMaltodextrin(): ?string { return $this->maltodextrin; } /** * Gets the maltose property value. The maltose property * @return string|null */ public function getMaltose(): ?string { return $this->maltose; } /** * Gets the oligosaccharides property value. The oligosaccharides property * @return string|null */ public function getOligosaccharides(): ?string { return $this->oligosaccharides; } /** * Gets the polyols property value. The polyols property * @return string|null */ public function getPolyols(): ?string { return $this->polyols; } /** * Gets the solubleFiber property value. The solubleFiber property * @return string|null */ public function getSolubleFiber(): ?string { return $this->solubleFiber; } /** * Gets the starch property value. The starch property * @return string|null */ public function getStarch(): ?string { return $this->starch; } /** * Gets the sucrose property value. The sucrose property * @return string|null */ public function getSucrose(): ?string { return $this->sucrose; } /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('boundFructose', $this->getBoundFructose()); $writer->writeStringValue('carbohydrateHydrates', $this->getCarbohydrateHydrates()); $writer->writeStringValue('freeFructose', $this->getFreeFructose()); $writer->writeStringValue('galactose', $this->getGalactose()); $writer->writeStringValue('glucose', $this->getGlucose()); $writer->writeStringValue('inositol', $this->getInositol()); $writer->writeStringValue('lactose', $this->getLactose()); $writer->writeStringValue('maltodextrin', $this->getMaltodextrin()); $writer->writeStringValue('maltose', $this->getMaltose()); $writer->writeStringValue('oligosaccharides', $this->getOligosaccharides()); $writer->writeStringValue('polyols', $this->getPolyols()); $writer->writeStringValue('solubleFiber', $this->getSolubleFiber()); $writer->writeStringValue('starch', $this->getStarch()); $writer->writeStringValue('sucrose', $this->getSucrose()); $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 boundFructose property value. The boundFructose property * @param string|null $value Value to set for the boundFructose property. */ public function setBoundFructose(?string $value): void { $this->boundFructose = $value; } /** * Sets the carbohydrateHydrates property value. The carbohydrateHydrates property * @param string|null $value Value to set for the carbohydrateHydrates property. */ public function setCarbohydrateHydrates(?string $value): void { $this->carbohydrateHydrates = $value; } /** * Sets the freeFructose property value. The freeFructose property * @param string|null $value Value to set for the freeFructose property. */ public function setFreeFructose(?string $value): void { $this->freeFructose = $value; } /** * Sets the galactose property value. The galactose property * @param string|null $value Value to set for the galactose property. */ public function setGalactose(?string $value): void { $this->galactose = $value; } /** * Sets the glucose property value. The glucose property * @param string|null $value Value to set for the glucose property. */ public function setGlucose(?string $value): void { $this->glucose = $value; } /** * Sets the inositol property value. The inositol property * @param string|null $value Value to set for the inositol property. */ public function setInositol(?string $value): void { $this->inositol = $value; } /** * Sets the lactose property value. The lactose property * @param string|null $value Value to set for the lactose property. */ public function setLactose(?string $value): void { $this->lactose = $value; } /** * Sets the maltodextrin property value. The maltodextrin property * @param string|null $value Value to set for the maltodextrin property. */ public function setMaltodextrin(?string $value): void { $this->maltodextrin = $value; } /** * Sets the maltose property value. The maltose property * @param string|null $value Value to set for the maltose property. */ public function setMaltose(?string $value): void { $this->maltose = $value; } /** * Sets the oligosaccharides property value. The oligosaccharides property * @param string|null $value Value to set for the oligosaccharides property. */ public function setOligosaccharides(?string $value): void { $this->oligosaccharides = $value; } /** * Sets the polyols property value. The polyols property * @param string|null $value Value to set for the polyols property. */ public function setPolyols(?string $value): void { $this->polyols = $value; } /** * Sets the solubleFiber property value. The solubleFiber property * @param string|null $value Value to set for the solubleFiber property. */ public function setSolubleFiber(?string $value): void { $this->solubleFiber = $value; } /** * Sets the starch property value. The starch property * @param string|null $value Value to set for the starch property. */ public function setStarch(?string $value): void { $this->starch = $value; } /** * Sets the sucrose property value. The sucrose property * @param string|null $value Value to set for the sucrose property. */ public function setSucrose(?string $value): void { $this->sucrose = $value; } }