Account.fromJson constructor

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

Implementation

factory Account.fromJson(Map<String, dynamic> json) {
  Token token = Token.fromJson(json['token']);
  return Account(
      accountIndex: json['accountIndex'],
      balance: json['balance'],
      bjj: json['bjj'],
      hezEthereumAddress: json['hezEthereumAddress'],
      itemId: json['itemId'],
      nonce: json['nonce'],
      token: token);
}