TemplateView constructor
- @JsonSerializable(includeIfNull: false)
const
TemplateView(
{ - @Default(toolsOzoneCommunicationDefsTemplateView) @JsonKey(name: r'$type') 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,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory TemplateView({
/// The unique namespace for this lex object.
///
/// `tools.ozone.communication.defs#templateView`
@Default(toolsOzoneCommunicationDefsTemplateView)
@JsonKey(name: r'$type')
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,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _TemplateView;