copyWithWrapped method

FDXHateoasLink copyWithWrapped({
  1. Wrapped<String>? href,
  2. Wrapped<FDXHateoasLinkAction?>? action,
  3. Wrapped<String?>? rel,
  4. Wrapped<List<FDXContentTypes>?>? types,
})

Implementation

FDXHateoasLink copyWithWrapped(
    {Wrapped<String>? href,
    Wrapped<enums.FDXHateoasLinkAction?>? action,
    Wrapped<String?>? rel,
    Wrapped<List<enums.FDXContentTypes>?>? types}) {
  return FDXHateoasLink(
      href: (href != null ? href.value : this.href),
      action: (action != null ? action.value : this.action),
      rel: (rel != null ? rel.value : this.rel),
      types: (types != null ? types.value : this.types));
}