fromJson static method
Inherited by: GiveawayInfoCompleted GiveawayInfoOngoing
Implementation
static GiveawayInfoCompleted? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return GiveawayInfoCompleted(
creationDate: (json['creation_date'] as int?) ?? 0,
actualWinnersSelectionDate:
(json['actual_winners_selection_date'] as int?) ?? 0,
wasRefunded: (json['was_refunded'] as bool?) ?? false,
isWinner: (json['is_winner'] as bool?) ?? false,
winnerCount: (json['winner_count'] as int?) ?? 0,
activationCount: (json['activation_count'] as int?) ?? 0,
giftCode: (json['gift_code'] as String?) ?? '',
wonStarCount: (json['won_star_count'] as int?) ?? 0,
);
}