toJSON method
Implementation
Map<String, dynamic> toJSON() {
Get.log("Band toJSON");
return <String, dynamic> {
'id': id,
'email': email,
'name': name,
'description': description,
'photoUrl': photoUrl,
'coverImgUrl': coverImgUrl,
'reason': reason.name,
'pricePerHour': pricePerHour?.toJSON() ?? Price().toJSON(),
'reviewStars': reviewStars,
'isActive': isActive,
'createdTime': createdTime,
'lastSession': lastSession,
'position': jsonEncode(position),
'lastReview': lastReview?.toJSON() ?? Review().toJSON(),
'bannedGenres': bannedGenres,
'itemmates': itemmates,
'eventmates': eventmates,
'followers': followers,
'following': following,
'unfollowing': unfollowing,
'posts': posts,
'hiddenPosts': hiddenPosts,
'hiddenComments': hiddenComments,
'reports': reports,
'events': events,
'reviews': reviews,
///DEPRECATED 'appMediaItems': appMediaItems,
///DEPRECATED 'appReleaseItems': appReleaseItems,
'playingEvents': playingEvents,
'requests': requests,
'sentRequests': sentRequests,
'invitationRequests': invitationRequests
};
}