toJson method

  1. @override
Map toJson()
override

Implementation

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