patchWithCustomerSortParameter method

CustomerSortParameter patchWithCustomerSortParameter([
  1. CustomerSortParameterPatch? patchInput
])

Implementation

CustomerSortParameter patchWithCustomerSortParameter([
  CustomerSortParameterPatch? patchInput,
]) {
  final _patcher = patchInput ?? CustomerSortParameterPatch();
  final _patchMap = _patcher.patchMap;
  return CustomerSortParameter(
    createdAt: _patchMap.containsKey(CustomerSortParameter$.createdAt)
        ? ((_patchMap[CustomerSortParameter$.createdAt] is Function)
                  ? _patchMap[CustomerSortParameter$.createdAt](
                      this.createdAt,
                    )
                  : (_patchMap[CustomerSortParameter$.createdAt] is Patch)
                  ? _patchMap[CustomerSortParameter$.createdAt].applyTo(
                      this.createdAt,
                    )
                  : _patchMap[CustomerSortParameter$.createdAt])
              as SortOrder?
        : this.createdAt,
    emailAddress: _patchMap.containsKey(CustomerSortParameter$.emailAddress)
        ? ((_patchMap[CustomerSortParameter$.emailAddress] is Function)
                  ? _patchMap[CustomerSortParameter$.emailAddress](
                      this.emailAddress,
                    )
                  : (_patchMap[CustomerSortParameter$.emailAddress] is Patch)
                  ? _patchMap[CustomerSortParameter$.emailAddress].applyTo(
                      this.emailAddress,
                    )
                  : _patchMap[CustomerSortParameter$.emailAddress])
              as SortOrder?
        : this.emailAddress,
    firstName: _patchMap.containsKey(CustomerSortParameter$.firstName)
        ? ((_patchMap[CustomerSortParameter$.firstName] is Function)
                  ? _patchMap[CustomerSortParameter$.firstName](
                      this.firstName,
                    )
                  : (_patchMap[CustomerSortParameter$.firstName] is Patch)
                  ? _patchMap[CustomerSortParameter$.firstName].applyTo(
                      this.firstName,
                    )
                  : _patchMap[CustomerSortParameter$.firstName])
              as SortOrder?
        : this.firstName,
    id: _patchMap.containsKey(CustomerSortParameter$.id)
        ? ((_patchMap[CustomerSortParameter$.id] is Function)
                  ? _patchMap[CustomerSortParameter$.id](this.id)
                  : (_patchMap[CustomerSortParameter$.id] is Patch)
                  ? _patchMap[CustomerSortParameter$.id].applyTo(this.id)
                  : _patchMap[CustomerSortParameter$.id])
              as SortOrder?
        : this.id,
    lastName: _patchMap.containsKey(CustomerSortParameter$.lastName)
        ? ((_patchMap[CustomerSortParameter$.lastName] is Function)
                  ? _patchMap[CustomerSortParameter$.lastName](this.lastName)
                  : (_patchMap[CustomerSortParameter$.lastName] is Patch)
                  ? _patchMap[CustomerSortParameter$.lastName].applyTo(
                      this.lastName,
                    )
                  : _patchMap[CustomerSortParameter$.lastName])
              as SortOrder?
        : this.lastName,
    phoneNumber: _patchMap.containsKey(CustomerSortParameter$.phoneNumber)
        ? ((_patchMap[CustomerSortParameter$.phoneNumber] is Function)
                  ? _patchMap[CustomerSortParameter$.phoneNumber](
                      this.phoneNumber,
                    )
                  : (_patchMap[CustomerSortParameter$.phoneNumber] is Patch)
                  ? _patchMap[CustomerSortParameter$.phoneNumber].applyTo(
                      this.phoneNumber,
                    )
                  : _patchMap[CustomerSortParameter$.phoneNumber])
              as SortOrder?
        : this.phoneNumber,
    title: _patchMap.containsKey(CustomerSortParameter$.title)
        ? ((_patchMap[CustomerSortParameter$.title] is Function)
                  ? _patchMap[CustomerSortParameter$.title](this.title)
                  : (_patchMap[CustomerSortParameter$.title] is Patch)
                  ? _patchMap[CustomerSortParameter$.title].applyTo(
                      this.title,
                    )
                  : _patchMap[CustomerSortParameter$.title])
              as SortOrder?
        : this.title,
    updatedAt: _patchMap.containsKey(CustomerSortParameter$.updatedAt)
        ? ((_patchMap[CustomerSortParameter$.updatedAt] is Function)
                  ? _patchMap[CustomerSortParameter$.updatedAt](
                      this.updatedAt,
                    )
                  : (_patchMap[CustomerSortParameter$.updatedAt] is Patch)
                  ? _patchMap[CustomerSortParameter$.updatedAt].applyTo(
                      this.updatedAt,
                    )
                  : _patchMap[CustomerSortParameter$.updatedAt])
              as SortOrder?
        : this.updatedAt,
  );
}