copyWith method
ContentTemplate
copyWith({
- String? templateId,
- ContentTemplateOriginalTemplate? originalTemplate,
- String? referencingBlueprint,
- String? name,
- String? description,
- Map<
String, dynamic> ? space, - List<
Label> ? labels, - String? templateType,
- String? editorVersion,
- ContentTemplateBody? body,
- ContentTemplateExpandable? expandable,
- GenericLinks? links,
Implementation
ContentTemplate copyWith(
{String? templateId,
ContentTemplateOriginalTemplate? originalTemplate,
String? referencingBlueprint,
String? name,
String? description,
Map<String, dynamic>? space,
List<Label>? labels,
String? templateType,
String? editorVersion,
ContentTemplateBody? body,
ContentTemplateExpandable? expandable,
GenericLinks? links}) {
return ContentTemplate(
templateId: templateId ?? this.templateId,
originalTemplate: originalTemplate ?? this.originalTemplate,
referencingBlueprint: referencingBlueprint ?? this.referencingBlueprint,
name: name ?? this.name,
description: description ?? this.description,
space: space ?? this.space,
labels: labels ?? this.labels,
templateType: templateType ?? this.templateType,
editorVersion: editorVersion ?? this.editorVersion,
body: body ?? this.body,
expandable: expandable ?? this.expandable,
links: links ?? this.links,
);
}