toJson method
Converts a PaidMediaInfo object to JSON.
Implementation
Map<String, dynamic> toJson() {
return {
'star_count': starCount,
'paid_media': paidMedia.map((item) => item.toJson()).toList(),
};
}
Converts a PaidMediaInfo object to JSON.
Map<String, dynamic> toJson() {
return {
'star_count': starCount,
'paid_media': paidMedia.map((item) => item.toJson()).toList(),
};
}