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'slug'] = this.slug;
if (this.membersCount != null) {
json[r'members_count'] = this.membersCount;
} else {
json[r'members_count'] = null;
}
if (this.missingMemberWithElevatedPermissions != null) {
json[r'missing_member_with_elevated_permissions'] =
this.missingMemberWithElevatedPermissions;
} else {
json[r'missing_member_with_elevated_permissions'] = null;
}
if (this.pendingInvitationsCount != null) {
json[r'pending_invitations_count'] = this.pendingInvitationsCount;
} else {
json[r'pending_invitations_count'] = null;
}
json[r'max_allowed_memberships'] = this.maxAllowedMemberships;
json[r'admin_delete_enabled'] = this.adminDeleteEnabled;
json[r'public_metadata'] = this.publicMetadata;
json[r'private_metadata'] = this.privateMetadata;
if (this.createdBy != null) {
json[r'created_by'] = this.createdBy;
} else {
json[r'created_by'] = null;
}
json[r'created_at'] = this.createdAt;
json[r'updated_at'] = this.updatedAt;
return json;
}