decode static method
Decodes this composed model with resilient fields.
Implementation
static AcpDecoded<ElicitationFormMode> decode(Object? json) {
final decoder = AcpResilientDecoder(decodeAcpObject(json));
final value = ElicitationFormMode(
requestedSchema: decoder.required(
'requestedSchema',
(value) => elicitationSchemaCodec.decode(value),
),
variant: _decodeElicitationFormModeVariant(json),
);
return decoder.finish(value);
}