GiveawayCreated.fromJson constructor

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

Creates a GiveawayCreated object from a JSON object.

Implementation

factory GiveawayCreated.fromJson(Map<String, dynamic> json) {
  return GiveawayCreated(
    prizeStarCount: json['prize_star_count'],
  );
}