decode static method

AcpDecoded<ConfigOptionUpdate> decode(
  1. Object? json
)

Decodes this model and reports recoverable issues.

Implementation

static AcpDecoded<ConfigOptionUpdate> decode(Object? json) {
  final decoder = AcpResilientDecoder(decodeAcpObject(json));
  final value = ConfigOptionUpdate(
    configOptions: decoder.listSkippingInvalid(
      'configOptions',
      (value) => sessionConfigOptionCodec.decode(value),
      isRequired: true,
    ),
    meta: decoder.meta(),
  );
  return decoder.finish(value);
}