Template constructor

Template({
  1. String? body,
  2. TemplateType? type,
  3. String? subject,
  4. bool? enabled,
  5. Iterable<String>? format,
})

Implementation

factory Template({
  $core.String? body,
  TemplateType? type,
  $core.String? subject,
  $core.bool? enabled,
  $core.Iterable<$core.String>? format,
}) {
  final _result = create();
  if (body != null) {
    _result.body = body;
  }
  if (type != null) {
    _result.type = type;
  }
  if (subject != null) {
    _result.subject = subject;
  }
  if (enabled != null) {
    _result.enabled = enabled;
  }
  if (format != null) {
    _result.format.addAll(format);
  }
  return _result;
}