GuildTemplate class
Guild Template structure
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
- GuildTemplate({required String code, required String name, String? description, required int usageCount, required String creatorId, required User creator, required DateTime createdAt, required DateTime updatedAt, required String sourceGuildId, required Guild serializedSourceGuild, bool? isDirty})
- Constructor
-
GuildTemplate.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
- code → String
-
the template code (unique ID)
final
- createdAt → DateTime
-
when this template was created
final
- creator → User
-
the user who created the template
final
- creatorId → String
-
the ID of the user who created the template
final
- description → String?
-
the description for the template
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDirty → bool?
-
whether the template has unsynced changes
final
- name → String
-
template name
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serializedSourceGuild → Guild
-
the guild snapshot this template contains
final
- sourceGuildId → String
-
the ID of the guild this template is based on
final
- updatedAt → DateTime
-
when this template was last synced to the source guild
final
- usageCount → int
-
number of times this template has been used
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited