TemplateView constructor

  1. @JsonSerializable(includeIfNull: false)
const TemplateView({
  1. @Default('tools.ozone.communication.defs#templateView') String $type,
  2. required String id,
  3. required String name,
  4. String? subject,
  5. required String contentMarkdown,
  6. required bool disabled,
  7. String? lang,
  8. required String lastUpdatedBy,
  9. required DateTime createdAt,
  10. required DateTime updatedAt,
  11. 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;