fromMap static method

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

Implementation

static IOSURLResponse? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  return IOSURLResponse(
      url: map["url"] != null ? Uri.tryParse(map["url"]) : null,
      expectedContentLength: map["expectedContentLength"],
      mimeType: map["mimeType"],
      suggestedFilename: map["suggestedFilename"],
      textEncodingName: map["textEncodingName"],
      headers: map["headers"]?.cast<String, String>(),
      statusCode: map["statusCode"]);
}