AccountHistoryEntry.fromJson constructor
AccountHistoryEntry.fromJson(
- List tupleJson
Implementation
factory AccountHistoryEntry.fromJson(List<dynamic> tupleJson) {
final index = tupleJson[0] as int;
final data = tupleJson[1] as Map<String, dynamic>;
return AccountHistoryEntry(
historyIndex: index,
trxId: data['trx_id'] as String,
block: data['block'] as int,
trxInBlock: data['trx_in_block'] as int,
opInTrx: data['op_in_trx'] as int,
virtualOp: data['virtual_op'] as int,
timestamp: forceUtcDate(data['timestamp'] as String),
op: AccountHistoryEntry._arrayToOp(data['op'] as List),
);
}