toJson method
Implementation
toJson(value, TypeContext context) {
if (value == null) return null;
Uint8List? bytes = value is Uint8List ? value : null;
return bytes != null
? toByteArray(bytes)
: null;
}
toJson(value, TypeContext context) {
if (value == null) return null;
Uint8List? bytes = value is Uint8List ? value : null;
return bytes != null
? toByteArray(bytes)
: null;
}