toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.account != null) {
json[r'account'] = this.account;
} else {
json[r'account'] = null;
}
if (this.category != null) {
json[r'category'] = this.category;
} else {
json[r'category'] = null;
}
json[r'config'] = this.config;
if (this.connected != null) {
json[r'connected'] = this.connected;
} else {
json[r'connected'] = null;
}
if (this.enabled != null) {
json[r'enabled'] = this.enabled;
} else {
json[r'enabled'] = null;
}
json[r'fields'] = this.fields;
if (this.live != null) {
json[r'live'] = this.live;
} else {
json[r'live'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.pixel != null) {
json[r'pixel'] = this.pixel;
} else {
json[r'pixel'] = null;
}
if (this.platform != null) {
json[r'platform'] = this.platform;
} else {
json[r'platform'] = null;
}
json[r'secrets'] = this.secrets;
return json;
}