copyWithWrapped method

ShopifySharpMetaField copyWithWrapped({
  1. Wrapped<DateTime?>? createdAt,
  2. Wrapped<DateTime?>? updatedAt,
  3. Wrapped<String?>? key,
  4. Wrapped? value,
  5. Wrapped<String?>? type,
  6. Wrapped<String?>? namespace,
  7. Wrapped<String?>? description,
  8. Wrapped<int?>? ownerId,
  9. Wrapped<String?>? ownerResource,
  10. Wrapped<int?>? id,
  11. Wrapped<String?>? adminGraphqlApiId,
})

Implementation

ShopifySharpMetaField copyWithWrapped({
  Wrapped<DateTime?>? createdAt,
  Wrapped<DateTime?>? updatedAt,
  Wrapped<String?>? key,
  Wrapped<dynamic>? value,
  Wrapped<String?>? type,
  Wrapped<String?>? namespace,
  Wrapped<String?>? description,
  Wrapped<int?>? ownerId,
  Wrapped<String?>? ownerResource,
  Wrapped<int?>? id,
  Wrapped<String?>? adminGraphqlApiId,
}) {
  return ShopifySharpMetaField(
    createdAt: (createdAt != null ? createdAt.value : this.createdAt),
    updatedAt: (updatedAt != null ? updatedAt.value : this.updatedAt),
    key: (key != null ? key.value : this.key),
    value: (value != null ? value.value : this.value),
    type: (type != null ? type.value : this.type),
    namespace: (namespace != null ? namespace.value : this.namespace),
    description: (description != null ? description.value : this.description),
    ownerId: (ownerId != null ? ownerId.value : this.ownerId),
    ownerResource: (ownerResource != null
        ? ownerResource.value
        : this.ownerResource),
    id: (id != null ? id.value : this.id),
    adminGraphqlApiId: (adminGraphqlApiId != null
        ? adminGraphqlApiId.value
        : this.adminGraphqlApiId),
  );
}