copyWith method

ContentProperty copyWith({
  1. String? id,
  2. String? key,
  3. dynamic value,
  4. ContentPropertyVersion? version,
  5. GenericLinks? links,
  6. ContentPropertyExpandable? expandable,
})

Implementation

ContentProperty copyWith(
    {String? id,
    String? key,
    dynamic value,
    ContentPropertyVersion? version,
    GenericLinks? links,
    ContentPropertyExpandable? expandable}) {
  return ContentProperty(
    id: id ?? this.id,
    key: key ?? this.key,
    value: value ?? this.value,
    version: version ?? this.version,
    links: links ?? this.links,
    expandable: expandable ?? this.expandable,
  );
}