copyWith method

ImgurUploadData copyWith({
  1. String? id,
  2. String? deletehash,
  3. dynamic accountId,
  4. dynamic accountUrl,
  5. dynamic adType,
  6. dynamic adUrl,
  7. dynamic title,
  8. dynamic description,
  9. String? name,
  10. String? type,
  11. int? width,
  12. int? height,
  13. int? size,
  14. int? views,
  15. dynamic section,
  16. dynamic vote,
  17. int? bandwidth,
  18. bool? animated,
  19. bool? favorite,
  20. bool? inGallery,
  21. bool? inMostViral,
  22. bool? hasSound,
  23. bool? isAd,
  24. dynamic nsfw,
  25. String? link,
  26. List? tags,
  27. int? datetime,
  28. String? mp4,
  29. String? hls,
})

Implementation

ImgurUploadData copyWith({
  String? id,
  String? deletehash,
  dynamic accountId,
  dynamic accountUrl,
  dynamic adType,
  dynamic adUrl,
  dynamic title,
  dynamic description,
  String? name,
  String? type,
  int? width,
  int? height,
  int? size,
  int? views,
  dynamic section,
  dynamic vote,
  int? bandwidth,
  bool? animated,
  bool? favorite,
  bool? inGallery,
  bool? inMostViral,
  bool? hasSound,
  bool? isAd,
  dynamic nsfw,
  String? link,
  List<dynamic>? tags,
  int? datetime,
  String? mp4,
  String? hls,
}) =>
    ImgurUploadData(
      id: id ?? this.id,
      deletehash: deletehash ?? this.deletehash,
      accountId: accountId ?? this.accountId,
      accountUrl: accountUrl ?? this.accountUrl,
      adType: adType ?? this.adType,
      adUrl: adUrl ?? this.adUrl,
      title: title ?? this.title,
      description: description ?? this.description,
      name: name ?? this.name,
      type: type ?? this.type,
      width: width ?? this.width,
      height: height ?? this.height,
      size: size ?? this.size,
      views: views ?? this.views,
      section: section ?? this.section,
      vote: vote ?? this.vote,
      bandwidth: bandwidth ?? this.bandwidth,
      animated: animated ?? this.animated,
      favorite: favorite ?? this.favorite,
      inGallery: inGallery ?? this.inGallery,
      inMostViral: inMostViral ?? this.inMostViral,
      hasSound: hasSound ?? this.hasSound,
      isAd: isAd ?? this.isAd,
      nsfw: nsfw ?? this.nsfw,
      link: link ?? this.link,
      tags: tags ?? this.tags,
      datetime: datetime ?? this.datetime,
      mp4: mp4 ?? this.mp4,
      hls: hls ?? this.hls,
    );