AccountInfo.fromJson constructor

AccountInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AccountInfo.fromJson(Map<String, dynamic> json) {
  return AccountInfo(
    accountData: AccountData.fromJson(json['account_data']),
    accountFlags: AccountFlags.fromJson(json['account_flags']),
    ledgerCurrentIndex: parseInt(json['ledger_current_index']),
    status: json['status'],
    validated: json['validated'],
  );
}