TemplateView constructor
- @JsonSerializable(includeIfNull: false)
const
TemplateView(
{ - @Default('tools.ozone.communication.defs#templateView') String $type,
- required String id,
- required String name,
- String? subject,
- required String contentMarkdown,
- required bool disabled,
- String? lang,
- required String lastUpdatedBy,
- required DateTime createdAt,
- required DateTime updatedAt,
- Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory TemplateView({
@Default('tools.ozone.communication.defs#templateView') String $type,
required String id,
/// Name of the template.
required String name,
/// Content of the template, can contain markdown and variable placeholders.
String? subject,
/// Subject of the message, used in emails.
required String contentMarkdown,
required bool disabled,
/// Message language.
String? lang,
/// DID of the user who last updated the template.
required String lastUpdatedBy,
required DateTime createdAt,
required DateTime updatedAt,
Map<String, dynamic>? $unknown,
}) = _TemplateView;