toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'object'] = this.object;
json[r'id'] = this.id;
json[r'name'] = this.name;
json[r'key'] = this.key;
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.membersCount != null) {
json[r'members_count'] = this.membersCount;
} else {
json[r'members_count'] = null;
}
if (this.hasMembers != null) {
json[r'has_members'] = this.hasMembers;
} else {
json[r'has_members'] = null;
}
json[r'created_at'] = this.createdAt;
json[r'updated_at'] = this.updatedAt;
return json;
}