TransactionResponse.fromJson constructor
TransactionResponse.fromJson(- Map<String, dynamic> json
)
Implementation
factory TransactionResponse.fromJson(Map<String, dynamic> json) {
var signaturesFromJson = json['signatures'];
List<String> signaturesList = new List<String>.from(signaturesFromJson);
return new TransactionResponse(
json['hash'] as String,
convertInt(json['ledger']),
json['created_at'] as String,
json['source_account'] as String,
json['source_account_muxed'] as String,
json['source_account_muxed_id'] as String,
json['fee_account'] as String,
json['fee_account_muxed'] as String,
json['fee_account_muxed_id'] as String,
json['successful'] as bool,
json['paging_token'] as String,
convertInt(json['source_account_sequence']),
convertInt(json['max_fee']),
convertInt(json['fee_charged']),
convertInt(json['operation_count']),
json['envelope_xdr'] as String,
json['result_xdr'] as String,
json['result_meta_xdr'] as String,
Memo.fromJson(json),
signaturesList,
json['fee_bump_transaction'] == null
? null
: new FeeBumpTransactionResponse.fromJson(
json['fee_bump_transaction'] as Map<String, dynamic>),
json['inner_transaction'] == null
? null
: new InnerTransaction.fromJson(
json['inner_transaction'] as Map<String, dynamic>),
json['_links'] == null
? null
: new TransactionResponseLinks.fromJson(
json['_links'] as Map<String, dynamic>));
}