fromJson static method
Inherited by: GiftOnChainPurchaseOfferStateAccepted GiftOnChainPurchaseOfferStateCanceled GiftOnChainPurchaseOfferStateCanceling GiftOnChainPurchaseOfferStateDeclined GiftOnChainPurchaseOfferStateExpired GiftOnChainPurchaseOfferStatePending GiftOnChainPurchaseOfferStateSettled
Implementation
static GiftOnChainPurchaseOfferStateCanceled? fromJson(
Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return GiftOnChainPurchaseOfferStateCanceled(
refundAmount: (json['refund_amount'] is int
? json['refund_amount'] as int
: int.tryParse(json['refund_amount']?.toString() ?? '')) ??
0,
fineAmount: (json['fine_amount'] is int
? json['fine_amount'] as int
: int.tryParse(json['fine_amount']?.toString() ?? '')) ??
0,
);
}