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