toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'custom'] = this.custom;
json[r'id'] = this.id;
if (this.image != null) {
json[r'image'] = this.image;
} else {
json[r'image'] = null;
}
if (this.invisible != null) {
json[r'invisible'] = this.invisible;
} else {
json[r'invisible'] = null;
}
if (this.language != null) {
json[r'language'] = this.language;
} else {
json[r'language'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.privacySettings != null) {
json[r'privacy_settings'] = this.privacySettings;
} else {
json[r'privacy_settings'] = null;
}
if (this.pushNotifications != null) {
json[r'push_notifications'] = this.pushNotifications;
} else {
json[r'push_notifications'] = null;
}
return json;
}