castingFailed<T extends Object?> static method
Implementation
static CborSerializableException castingFailed<T extends Object?>(
Object? value, {
String? operation,
}) {
throw CborSerializableException(
"Failed to cast CBOR object to type '$T'.",
details: {
"expectedType": "$T",
"actualType": value?.runtimeType.toString() ?? "null",
"operation": operation,
},
);
}