| 1 | class AccountInfoResponse { |
| 2 | String frontier; |
| 3 | int confirmationHeight; |
| 4 | String balance; |
| 5 | String representative; |
| 6 | String? address; |
| 7 | |
| 8 | AccountInfoResponse({ |
| 9 | required this.frontier, |
| 10 | required this.balance, |
| 11 | required this.representative, |
| 12 | required this.confirmationHeight, |
| 13 | }); |
| 14 | |
| 15 | factory AccountInfoResponse.fromJson(Map<String, dynamic> json) { |
| 16 | return AccountInfoResponse( |
| 17 | frontier: json['frontier'] as String, |
| 18 | representative: json['representative'] as String, |
| 19 | balance: json['balance'] as String, |
| 20 | confirmationHeight: int.parse(json['confirmation_height'] as String), |
| 21 | ); |
| 22 | } |
| 23 | } |