toJson method

Map<String, dynamic> toJson()

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,
  };
}