decode static method
Decodes this model and reports recoverable issues.
Implementation
static AcpDecoded<IdleStateUpdate> decode(Object? json) {
final decoder = AcpResilientDecoder(decodeAcpObject(json));
final value = IdleStateUpdate(
stopReason: decoder.patch(
'stopReason',
(value) => stopReasonCodec.decode(value),
),
meta: decoder.meta(),
);
return decoder.finish(value);
}