fromMap static method

DownloadStartRequest? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible DownloadStartRequest instance from a Map value.

Implementation

static DownloadStartRequest? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = DownloadStartRequest(
    contentDisposition: map['contentDisposition'],
    contentLength: map['contentLength'],
    mimeType: map['mimeType'],
    suggestedFilename: map['suggestedFilename'],
    textEncodingName: map['textEncodingName'],
    url: WebUri(map['url']),
    userAgent: map['userAgent'],
  );
  return instance;
}