toJson method

Map<String, dynamic> toJson()

Converts the GiveawayCreated object to a JSON object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'prize_star_count': prizeStarCount,
  }..removeWhere(_nullFilter);
}