toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'url': url,
    'type': type.toJson(),
    'mimeType': mimeType,
    if (lastModified != null) 'lastModified': lastModified!.toJson(),
    if (contentSize != null) 'contentSize': contentSize,
    if (failed != null) 'failed': failed,
    if (canceled != null) 'canceled': canceled,
  };
}