PathPaymentOperationResponse.fromJson constructor
PathPaymentOperationResponse.fromJson(- Map<String, dynamic> json
)
Implementation
factory PathPaymentOperationResponse.fromJson(Map<String, dynamic> json) {
return new PathPaymentOperationResponse(
json['amount'] as String,
json['source_max'] as String,
json['from'] == null
? null
: KeyPair.fromAccountId(json['from'] as String),
json['to'] == null ? null : KeyPair.fromAccountId(json['to'] as String),
json['asset_type'] as String,
json['asset_code'] as String,
json['asset_issuer'] as String,
json['source_asset_type'] as String,
json['source_asset_code'] as String,
json['source_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>);
}