toJson method

JsonMap toJson()

Encodes this object as JSON.

Implementation

JsonMap toJson() => {
  'filename': filename,
  'content_type': contentType,
  'content_id': contentId,
  'disposition': disposition,
  'data': data,
};