toJson method
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> data = {};
data['h5Path'] = h5Path;
data['isAssetsDone'] = isAssetsDone;
if (assets.isNotEmpty) {
data['assets'] = assets.map((e) => e.toJson()).toList();
}
return data;
}