toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.category != null) {
json[r'category'] = this.category;
} else {
json[r'category'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.authType != null) {
json[r'authType'] = this.authType;
} else {
json[r'authType'] = null;
}
if (this.connected != null) {
json[r'connected'] = this.connected;
} else {
json[r'connected'] = null;
}
if (this.connectedAccounts != null) {
json[r'connectedAccounts'] = this.connectedAccounts;
} else {
json[r'connectedAccounts'] = null;
}
json[r'capabilities'] = this.capabilities;
if (this.gradientFrom != null) {
json[r'gradientFrom'] = this.gradientFrom;
} else {
json[r'gradientFrom'] = null;
}
if (this.gradientTo != null) {
json[r'gradientTo'] = this.gradientTo;
} else {
json[r'gradientTo'] = null;
}
if (this.icon != null) {
json[r'icon'] = this.icon;
} else {
json[r'icon'] = null;
}
return json;
}