copyWith method

ContentTemplateCreate copyWith({
  1. String? name,
  2. String? templateType,
  3. ContentTemplateBodyCreate? body,
  4. String? description,
  5. List<Label>? labels,
  6. ContentTemplateCreateSpace? space,
})

Implementation

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