JsonParserError.deserialize constructor

JsonParserError.deserialize({
  1. List<int>? bytes,
  2. CborObject<Object?>? object,
})

Implementation

factory JsonParserError.deserialize({List<int>? bytes, CborObject? object}) {
  final values = CborTagSerializable.decodeTaggedValue(
    identifier: BlockchainUtilsSerializationIdentifier.jsonParserError,
    cborBytes: bytes,
    cborObject: object,
  );
  return JsonParserError(
    values.rawValueAt(0),
    details: values.maybeRawMapAt<String, String?>(1),
  );
}