CreatePassiveOfferOperationResponse.fromJson constructor
CreatePassiveOfferOperationResponse.fromJson(- Map<String, dynamic> json
)
Implementation
factory CreatePassiveOfferOperationResponse.fromJson(
Map<String, dynamic> json) {
return new CreatePassiveOfferOperationResponse(
convertInt(json['offer_id']),
json['amount'] as String,
json['price'] as String,
json['buying_asset_type'] as String,
json['buying_asset_code'] as String,
json['buying_asset_issuer'] as String,
json['selling_asset_type'] as String,
json['selling_asset_code'] as String,
json['selling_asset_issuer'] as String)
..id = int.parse(json['id'] as String)
..sourceAccount = json['source_account'] == null
? null
: KeyPair.fromAccountId(json['source_account'] as String)
..pagingToken = json['paging_token'] as String
..createdAt = json['created_at'] as String
..transactionHash = json['transaction_hash'] as String
..type = json['type'] as String
..links = json['_links'] == null
? null
: new OperationResponseLinks.fromJson(
json['_links'] as Map<String, dynamic>);
}