ChatBoostSourceGiveaway.fromJson constructor

ChatBoostSourceGiveaway.fromJson(
  1. Map<String, dynamic> json
)

Creates a ChatBoostSourceGiveaway object from a JSON object.

Implementation

factory ChatBoostSourceGiveaway.fromJson(Map<String, dynamic> json) {
  return ChatBoostSourceGiveaway(
    user: User.fromJson(json['user']),
    isUnclaimed: json['is_unclaimed'],
    giveawayMessageId: json['giveaway_message_id'],
    prizeStarCount: json['prize_star_count'],
  );
}