decode static method

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

Decodes this model and reports recoverable issues.

Implementation

static AcpDecoded<SessionInfoUpdate> decode(Object? json) {
  final decoder = AcpResilientDecoder(decodeAcpObject(json));
  final value = SessionInfoUpdate(
    title: decoder.patch('title', (value) => decodeAcpString(value)),
    updatedAt: decoder.patch(
      'updatedAt',
      (value) => decodeAcpDateTime(value),
    ),
    meta: decoder.meta(),
  );
  return decoder.finish(value);
}