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. bool? triggerOnCreate,
  9. String? subject,
  10. String? templatePath,
  11. LanguageCode? languageCode,
})

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,
  $core.bool? triggerOnCreate,
  $core.String? subject,
  $core.String? templatePath,
  LanguageCode? languageCode,
}) {
  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 (triggerOnCreate != null) {
    _result.triggerOnCreate = triggerOnCreate;
  }
  if (subject != null) {
    _result.subject = subject;
  }
  if (templatePath != null) {
    _result.templatePath = templatePath;
  }
  if (languageCode != null) {
    _result.languageCode = languageCode;
  }
  return _result;
}