copyWith method

ContentTemplateUpdate copyWith({
  1. String? templateId,
  2. String? name,
  3. ContentTemplateUpdateTemplateType? templateType,
  4. ContentTemplateBodyCreate? body,
  5. String? description,
  6. List<Label>? labels,
  7. ContentTemplateUpdateSpace? space,
})

Implementation

ContentTemplateUpdate copyWith(
    {String? templateId,
    String? name,
    ContentTemplateUpdateTemplateType? templateType,
    ContentTemplateBodyCreate? body,
    String? description,
    List<Label>? labels,
    ContentTemplateUpdateSpace? space}) {
  return ContentTemplateUpdate(
    templateId: templateId ?? this.templateId,
    name: name ?? this.name,
    templateType: templateType ?? this.templateType,
    body: body ?? this.body,
    description: description ?? this.description,
    labels: labels ?? this.labels,
    space: space ?? this.space,
  );
}