toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
if (this.provider != null) {
json[r'provider'] = this.provider;
} else {
json[r'provider'] = null;
}
if (this.accountId != null) {
json[r'accountId'] = this.accountId;
} else {
json[r'accountId'] = null;
}
json[r'presentationId'] = this.presentationId;
json[r'title'] = this.title;
if (this.notes != null) {
json[r'notes'] = this.notes;
} else {
json[r'notes'] = null;
}
if (this.layout != null) {
json[r'layout'] = this.layout;
} else {
json[r'layout'] = null;
}
if (this.backgroundColor != null) {
json[r'backgroundColor'] = this.backgroundColor;
} else {
json[r'backgroundColor'] = null;
}
if (this.backgroundImageUrl != null) {
json[r'backgroundImageUrl'] = this.backgroundImageUrl;
} else {
json[r'backgroundImageUrl'] = null;
}
if (this.textColor != null) {
json[r'textColor'] = this.textColor;
} else {
json[r'textColor'] = null;
}
if (this.transition != null) {
json[r'transition'] = this.transition;
} else {
json[r'transition'] = null;
}
json[r'position'] = this.position;
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
return json;
}