TemplateView constructor

  1. @JsonSerializable(includeIfNull: false)
const TemplateView({
  1. @Default(toolsOzoneCommunicationDefsTemplateView) @JsonKey(name: r'$type') 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. @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;