copyWith method
ContentBody
copyWith({
- String? value,
- ContentBodyRepresentation? representation,
- List<
EmbeddedContent> ? embeddedContent, - WebResourceDependencies? webresource,
- ContentBodyMediaToken? mediaToken,
- ContentBodyExpandable? expandable,
- 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,
);
}