toJson method
Implementation
Map<String, dynamic> toJson() {
final byteBuffer = this.byteBuffer;
final contentType = this.contentType;
return {
if (byteBuffer != null) 'byteBuffer': base64Encode(byteBuffer),
if (contentType != null) 'contentType': contentType,
};
}