toJson method

Map<String, dynamic> toJson()

Converts a PaidMediaInfo object to JSON.

Implementation

Map<String, dynamic> toJson() {
  return {
    'star_count': starCount,
    'paid_media': paidMedia.map((item) => item.toJson()).toList(),
  };
}