toMap method
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'id': id,
'name': name,
'images': images.map((x) => x.toMap()).toList(),
'owner': owner.toMap(),
'public': public,
'snapshot_id': snapshotId,
'total_tracks': totalTracks,
'collaborative': collaborative,
'description': description,
};
}