copyWith method

EmbeddedResource copyWith({
  1. Object? annotations = _acpCopyWithAbsent,
  2. Object? resource = _acpCopyWithAbsent,
  3. Object? meta = _acpCopyWithAbsent,
})

Implementation

EmbeddedResource copyWith({
  Object? annotations = _acpCopyWithAbsent,
  Object? resource = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => EmbeddedResource(
  annotations: identical(annotations, _acpCopyWithAbsent)
      ? this.annotations
      : annotations as Annotations?,
  resource: identical(resource, _acpCopyWithAbsent)
      ? this.resource
      : resource as EmbeddedResourceResource,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);