toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
if (this.createdBy != null) {
json[r'created_by'] = this.createdBy;
} else {
json[r'created_by'] = null;
}
if (this.privateMetadata != null) {
json[r'private_metadata'] = this.privateMetadata;
} else {
json[r'private_metadata'] = null;
}
if (this.publicMetadata != null) {
json[r'public_metadata'] = this.publicMetadata;
} else {
json[r'public_metadata'] = null;
}
if (this.slug != null) {
json[r'slug'] = this.slug;
} else {
json[r'slug'] = null;
}
if (this.maxAllowedMemberships != null) {
json[r'max_allowed_memberships'] = this.maxAllowedMemberships;
} else {
json[r'max_allowed_memberships'] = null;
}
if (this.createdAt != null) {
json[r'created_at'] = this.createdAt;
} else {
json[r'created_at'] = null;
}
return json;
}