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