oChoiceBlock = $oChoiceBlock; } /** @inheritdoc */ public function Convert(mixed $oData): ?StringIOFormat { if (is_null($oData) || is_array($oData)) { return null; } $aOptions = array_flip($this->oChoiceBlock->GetOption('choices')); if (!array_key_exists($oData, $aOptions) || is_null($aOptions[$oData])) { return null; } return new StringIOFormat($aOptions[$oData]); } }