fromJson static method

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

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;
  }
}