fromJson static method
Inherited by: StorePaymentPurposeGiftedStars StorePaymentPurposePremiumGift StorePaymentPurposePremiumGiftCodes StorePaymentPurposePremiumGiveaway StorePaymentPurposePremiumSubscription StorePaymentPurposeStarGiveaway StorePaymentPurposeStars
Implementation
static StorePaymentPurposeGiftedStars? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return StorePaymentPurposeGiftedStars(
userId: (json['user_id'] as int?) ?? 0,
currency: (json['currency'] as String?) ?? '',
amount: (json['amount'] as int?) ?? 0,
starCount: (json['star_count'] as int?) ?? 0,
);
}