AccountResponse.fromJson constructor
AccountResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AccountResponse.fromJson(Map<String, dynamic> json) =>
AccountResponse(
json['account_id'],
convertInt(json['sequence'])!,
json['paging_token'],
convertInt(json['subentry_count'])!,
json['inflation_destination'],
json['home_domain'],
convertInt(json['last_modified_ledger'])!,
json['last_modified_time'],
Thresholds.fromJson(json['thresholds']),
Flags.fromJson(json['flags']),
List<Balance>.from(json['balances'].map((e) => Balance.fromJson(e))),
List<Signer>.from(json['signers'].map((e) => Signer.fromJson(e))),
AccountResponseData(json['data']),
AccountResponseLinks.fromJson(json['_links']),
json['sponsor'],
convertInt(json['num_sponsoring'])!,
convertInt(json['num_sponsored'])!,
convertInt(json['sequence_ledger']),
json['sequence_time'],
);