Template constructor

Template({
  1. List<Map<String, dynamic>>? body = const [],
  2. DateTime? createdAt,
  3. List<Map<String, dynamic>>? footer = const [],
  4. List<Map<String, dynamic>>? header = const [],
  5. String? id,
  6. required String name,
  7. required String type,
  8. DateTime? updatedAt,
})

Returns a new Template instance.

Implementation

Template({
  this.body = const [],
  this.createdAt,
  this.footer = const [],
  this.header = const [],
  this.id,
  required this.name,
  required this.type,
  this.updatedAt,
});