dev
dart 37 lines 994 Bytes
Raw
1 class BlockContentsResponse {
2 String type;
3 String account;
4 String previous;
5 String representative;
6 String balance;
7 String link;
8 String linkAsAccount;
9 String signature;
10 String work;
11
12 BlockContentsResponse({
13 required this.type,
14 required this.account,
15 required this.previous,
16 required this.representative,
17 required this.balance,
18 required this.link,
19 required this.linkAsAccount,
20 required this.signature,
21 required this.work,
22 });
23
24 factory BlockContentsResponse.fromJson(Map<String, dynamic> json) {
25 return BlockContentsResponse(
26 type: json['type'] as String,
27 account: json['account'] as String,
28 previous: json['previous'] as String,
29 representative: json['representative'] as String,
30 balance: json['balance'] as String,
31 link: json['link'] as String,
32 linkAsAccount: json['link_as_account'] as String,
33 signature: json['signature'] as String,
34 work: json['work'] as String,
35 );
36 }
37 }