Email constructor

Email({
  1. String? to,
  2. String? subject,
  3. String? html,
  4. String? text,
  5. bool? requireDevlivery,
})

Implementation

factory Email({
  $core.String? to,
  $core.String? subject,
  $core.String? html,
  $core.String? text,
  $core.bool? requireDevlivery,
}) {
  final _result = create();
  if (to != null) {
    _result.to = to;
  }
  if (subject != null) {
    _result.subject = subject;
  }
  if (html != null) {
    _result.html = html;
  }
  if (text != null) {
    _result.text = text;
  }
  if (requireDevlivery != null) {
    _result.requireDevlivery = requireDevlivery;
  }
  return _result;
}