copyWithWrapped method

DeviceModel copyWithWrapped({
  1. Wrapped<String?>? website,
  2. Wrapped<String?>? wikiLink,
  3. Wrapped<String?>? make,
  4. Wrapped<String?>? model,
  5. Wrapped<String?>? version,
  6. Wrapped<List<Parameter>?>? parameters,
  7. Wrapped<String?>? id,
  8. Wrapped<String>? $id,
  9. Wrapped<int?>? cstamp,
  10. Wrapped<String?>? cby,
  11. Wrapped<String?>? uby,
  12. Wrapped<int?>? ustamp,
  13. Wrapped<String?>? name,
  14. Wrapped<String?>? icon,
  15. Wrapped<String?>? description,
  16. Wrapped<List<String>?>? images,
})

Implementation

DeviceModel copyWithWrapped(
    {Wrapped<String?>? website,
    Wrapped<String?>? wikiLink,
    Wrapped<String?>? make,
    Wrapped<String?>? model,
    Wrapped<String?>? version,
    Wrapped<List<Parameter>?>? parameters,
    Wrapped<String?>? id,
    Wrapped<String>? $id,
    Wrapped<int?>? cstamp,
    Wrapped<String?>? cby,
    Wrapped<String?>? uby,
    Wrapped<int?>? ustamp,
    Wrapped<String?>? name,
    Wrapped<String?>? icon,
    Wrapped<String?>? description,
    Wrapped<String?>? logo,
    Wrapped<List<String>?>? images}) {
  return DeviceModel(
      website: (website != null ? website.value : this.website),
      wikiLink: (wikiLink != null ? wikiLink.value : this.wikiLink),
      make: (make != null ? make.value : this.make),
      model: (model != null ? model.value : this.model),
      version: (version != null ? version.value : this.version),
      parameters: (parameters != null ? parameters.value : this.parameters),
      id: (id != null ? id.value : this.id),
      $id: ($id != null ? $id.value : this.$id),
      cstamp: (cstamp != null ? cstamp.value : this.cstamp),
      cby: (cby != null ? cby.value : this.cby),
      uby: (uby != null ? uby.value : this.uby),
      ustamp: (ustamp != null ? ustamp.value : this.ustamp),
      name: (name != null ? name.value : this.name),
      icon: (icon != null ? icon.value : this.icon),
      description:
          (description != null ? description.value : this.description),
      logo: (logo != null ? logo.value : this.logo),
      images: (images != null ? images.value : this.images));
}