toJSON method
Implementation
Map<String, dynamic> toJSON() => {
'id': id,
'name': name,
'description': description,
'imgUrl': imgUrl,
'galleryUrls': galleryUrls,
'previewUrl': previewUrl,
'duration': duration,
'type': type.name,
'status': status.name,
'ownerEmail': ownerEmail,
'ownerName': ownerName,
'ownerType': ownerType.name,
'categories': categories,
'tags': tags,
'metaId': metaId,
'metaName': metaName,
'metaOwnerId': metaOwnerId,
'instruments': instruments,
'lyrics': lyrics,
'language': language,
'digitalPrice': digitalPrice?.toJSON(),
'physicalPrice': physicalPrice?.toJSON(),
'salePrice': salePrice?.toJSON(),
'isRental': isRental,
'publishedYear': publishedYear,
'publisher': publisher,
'place': place?.toJSON(),
'boughtUsers': boughtUsers,
'createdTime': createdTime,
'modifiedTime': modifiedTime,
'state': state,
'externalArtists': externalArtists,
'featInternalArtists': featInternalArtists,
'likedProfiles': likedProfiles,
'externalUrl': externalUrl,
'webPreviewUrl': webPreviewUrl,
};