fromJson static method
Implementation
static StarGiveawayWinnerOption? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return StarGiveawayWinnerOption(
winnerCount: (json['winner_count'] as int?) ?? 0,
wonStarCount: (json['won_star_count'] as int?) ?? 0,
isDefault: (json['is_default'] as bool?) ?? false,
);
}