copyWith method

ContentBody copyWith({
  1. String? value,
  2. ContentBodyRepresentation? representation,
  3. List<EmbeddedContent>? embeddedContent,
  4. WebResourceDependencies? webresource,
  5. ContentBodyMediaToken? mediaToken,
  6. ContentBodyExpandable? expandable,
  7. GenericLinks? links,
})

Implementation

ContentBody copyWith(
    {String? value,
    ContentBodyRepresentation? representation,
    List<EmbeddedContent>? embeddedContent,
    WebResourceDependencies? webresource,
    ContentBodyMediaToken? mediaToken,
    ContentBodyExpandable? expandable,
    GenericLinks? links}) {
  return ContentBody(
    value: value ?? this.value,
    representation: representation ?? this.representation,
    embeddedContent: embeddedContent ?? this.embeddedContent,
    webresource: webresource ?? this.webresource,
    mediaToken: mediaToken ?? this.mediaToken,
    expandable: expandable ?? this.expandable,
    links: links ?? this.links,
  );
}