toMap method

Map<String, dynamic> toMap()

Implementation

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