toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'mimeType': mimeType,
    'data': data,
    if (title != null) 'title': title,
    if (baseURL != null) 'baseURL': baseURL,
  };
}