decode static method

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

Decodes this model and reports recoverable issues.

Implementation

static AcpDecoded<Implementation> decode(Object? json) {
  final decoder = AcpResilientDecoder(decodeAcpObject(json));
  final value = Implementation(
    name: decoder.required('name', (value) => decodeAcpString(value)),
    title: decoder
        .optionalOnError('title', (value) => decodeAcpString(value))
        .valueOrNull,
    version: decoder.required('version', (value) => decodeAcpString(value)),
    meta: decoder.meta(),
  );
  return decoder.finish(value);
}