Template class

Constructors

Template({List<Map<String, dynamic>>? body = const [], DateTime? createdAt, List<Map<String, dynamic>>? footer = const [], List<Map<String, dynamic>>? header = const [], String? id, required String name, required String type, DateTime? updatedAt})
Returns a new Template instance.

Properties

body List<Map<String, dynamic>>?
getter/setter pair
createdAt DateTime?
final
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
getter/setter pair
id String?
final
name String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
getter/setter pair
updatedAt DateTime?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(Map<String, dynamic>? json) Template?
Returns a new Template instance and imports its values from json if it's non-null, null if json is null.
listFromJson(List? json) List<Template>
mapFromJson(Map<String, dynamic>? json) Map<String, Template>
mapListFromJson(Map<String, dynamic>? json) Map<String, List<Template>>