fromJson static method
Implementation
static GiftOnChainSaleTransaction? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case GiftOnChainSaleTransactionFixedPrice.constructor:
return GiftOnChainSaleTransactionFixedPrice.fromJson(json);
case GiftOnChainSaleTransactionFragment.constructor:
return GiftOnChainSaleTransactionFragment.fromJson(json);
default:
return null;
}
}