copyWith method

ContentTemplate copyWith({
  1. String? templateId,
  2. ContentTemplateOriginalTemplate? originalTemplate,
  3. String? referencingBlueprint,
  4. String? name,
  5. String? description,
  6. Map<String, dynamic>? space,
  7. List<Label>? labels,
  8. String? templateType,
  9. String? editorVersion,
  10. ContentTemplateBody? body,
  11. ContentTemplateExpandable? expandable,
  12. 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,
  );
}