copyWith method

BlueprintTemplate copyWith({
  1. String? templateId,
  2. BlueprintTemplateOriginalTemplate? 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. BlueprintTemplateExpandable? expandable,
  12. GenericLinks? links,
})

Implementation

BlueprintTemplate copyWith(
    {String? templateId,
    BlueprintTemplateOriginalTemplate? originalTemplate,
    String? referencingBlueprint,
    String? name,
    String? description,
    Map<String, dynamic>? space,
    List<Label>? labels,
    String? templateType,
    String? editorVersion,
    ContentTemplateBody? body,
    BlueprintTemplateExpandable? expandable,
    GenericLinks? links}) {
  return BlueprintTemplate(
    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,
  );
}