toJson method
Convert the current object to JSON.
Returns a Map with key-value pairs representing the object's data. Each key corresponds to a property of the object.
Each value is the value of that property. The values may be basic types (e.g. String, int, bool, etc.),
Types that can be directly converted to JSON (e.g. List, Map), or objects that implement the toJson
method.
The Map can be converted directly to a JSON string.
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['backgroundColor'] = this.backgroundColor;
data['backgroundImage'] = this.backgroundImage;
data['videoLayoutList'] = videoLayoutListToJson();
data['audioMixUserList'] = audioMixUserListToJson();
data['watermarkList'] = watermarkListToJson();
return data;
}