LiquidityPoolTradeEffectResponse.fromJson constructor
LiquidityPoolTradeEffectResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LiquidityPoolTradeEffectResponse.fromJson(
Map<String, dynamic> json) =>
LiquidityPoolTradeEffectResponse(
liquidityPool: json['liquidity_pool'] == null
? throw Exception("liquidity_pool is null in horizon response")
: LiquidityPoolEffectResponse.fromJson(json['liquidity_pool']),
sold: json['sold'] == null
? throw Exception("sold is null in horizon response")
: ReserveResponse.fromJson(json['sold']),
bought: json['bought'] == null
? throw Exception("bought is null in horizon response")
: ReserveResponse.fromJson(json['bought']))
..id = json['id']
..account = json['account'] == null ? null : json['account']
..accountMuxed =
json['account_muxed'] == null ? null : json['account_muxed']
..accountMuxedId =
json['account_muxed_id'] == null ? null : json['account_muxed_id']
..type = json['type']
..createdAt = json['created_at']
..pagingToken = json['paging_token']
..links = json['_links'] == null
? null
: EffectResponseLinks.fromJson(json['_links']);