Email constructor

Email({
  1. String? id,
  2. String? welcomeMessage,
  3. String? bodyMessage,
  4. String? footerMessage,
  5. String? title,
  6. Timestamp? createdAt,
  7. Timestamp? updatedAt,
  8. Timestamp? encryptedAt,
  9. bool? triggerOnCreate,
  10. int? internalEncryptionLevel,
  11. String? subject,
  12. String? templatePath,
})

Implementation

factory Email({
  $core.String? id,
  $core.String? logo,
  $core.String? welcomeMessage,
  $core.String? bodyMessage,
  $core.String? footerMessage,
  $core.String? title,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
  $1.Timestamp? encryptedAt,
  $core.bool? triggerOnCreate,
  $core.int? internalEncryptionLevel,
  $core.String? subject,
  $core.String? templatePath,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (logo != null) {
    _result.logo = logo;
  }
  if (welcomeMessage != null) {
    _result.welcomeMessage = welcomeMessage;
  }
  if (bodyMessage != null) {
    _result.bodyMessage = bodyMessage;
  }
  if (footerMessage != null) {
    _result.footerMessage = footerMessage;
  }
  if (title != null) {
    _result.title = title;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  if (encryptedAt != null) {
    _result.encryptedAt = encryptedAt;
  }
  if (triggerOnCreate != null) {
    _result.triggerOnCreate = triggerOnCreate;
  }
  if (internalEncryptionLevel != null) {
    _result.internalEncryptionLevel = internalEncryptionLevel;
  }
  if (subject != null) {
    _result.subject = subject;
  }
  if (templatePath != null) {
    _result.templatePath = templatePath;
  }
  return _result;
}