Orders.fromJson constructor
Implementation
Orders.fromJson(Map<String, dynamic> json) {
id = json['id'] as int?;
asset = (json['asset'] as Map<String, dynamic>?) != null
? Asset.fromJson(json['asset'] as Map<String, dynamic>)
: null;
assetBundle = json['asset_bundle'];
createdDate = json['created_date'] as String?;
closingDate = json['closing_date'] as String?;
closingExtendable = json['closing_extendable'] as bool?;
expirationTime = json['expiration_time'] as int?;
listingTime = json['listing_time'] as int?;
orderHash = json['order_hash'] as String?;
metadata = (json['metadata'] as Map<String, dynamic>?) != null
? Metadata.fromJson(json['metadata'] as Map<String, dynamic>)
: null;
exchange = json['exchange'] as String?;
maker = (json['maker'] as Map<String, dynamic>?) != null
? Maker.fromJson(json['maker'] as Map<String, dynamic>)
: null;
taker = (json['taker'] as Map<String, dynamic>?) != null
? Taker.fromJson(json['taker'] as Map<String, dynamic>)
: null;
currentPrice = json['current_price'] as String?;
currentBounty = json['current_bounty'] as String?;
bountyMultiple = json['bounty_multiple'] as String?;
makerRelayerFee = json['maker_relayer_fee'] as String?;
takerRelayerFee = json['taker_relayer_fee'] as String?;
makerProtocolFee = json['maker_protocol_fee'] as String?;
takerProtocolFee = json['taker_protocol_fee'] as String?;
makerReferrerFee = json['maker_referrer_fee'] as String?;
feeRecipient = (json['fee_recipient'] as Map<String, dynamic>?) != null
? FeeRecipient.fromJson(json['fee_recipient'] as Map<String, dynamic>)
: null;
feeMethod = json['fee_method'] as int?;
side = json['side'] as int?;
saleKind = json['sale_kind'] as int?;
target = json['target'] as String?;
howToCall = json['how_to_call'] as int?;
calldata = json['calldata'] as String?;
replacementPattern = json['replacement_pattern'] as String?;
staticTarget = json['static_target'] as String?;
staticExtradata = json['static_extradata'] as String?;
paymentToken = json['payment_token'] as String?;
paymentTokenContract =
(json['payment_token_contract'] as Map<String, dynamic>?) != null
? PaymentTokenContract.fromJson(
json['payment_token_contract'] as Map<String, dynamic>)
: null;
basePrice = json['base_price'] as String?;
extra = json['extra'] as String?;
quantity = json['quantity'] as String?;
salt = json['salt'] as String?;
v = json['v'] as int?;
r = json['r'] as String?;
s = json['s'] as String?;
approvedOnChain = json['approved_on_chain'] as bool?;
cancelled = json['cancelled'] as bool?;
finalized = json['finalized'] as bool?;
markedInvalid = json['marked_invalid'] as bool?;
prefixedHash = json['prefixed_hash'] as String?;
}