serializationItems property
Implementation
@override
List<CborObject?> get serializationItems => [
super.message.toCbor(),
switch (details) {
null => CborNullValue(),
Map<String, String?> value => value.toCbor(),
},
errorCode?.toCbor(),
switch (request) {
null => CborNullValue(),
Map<String, dynamic> request => StringUtils.fromJson(request).toCbor(),
},
switch (jsonRpcErrpr) {
null => CborNullValue(),
Map<String, dynamic> request => StringUtils.fromJson(request).toCbor(),
},
relatedNetwork?.identifier.id.toCbor(),
statusCode?.toCbor(),
];