LogEntry.fromJson constructor
Creates a LogEntry instance from a JSON map.
Implementation
factory LogEntry.fromJson(Map<String, dynamic> json) {
return LogEntry(
address: json['address'],
blockHash: json['blockHash'],
blockNumber: PluginIntUtils.hexToInt(json['blockNumber']),
data: json['data'],
logIndex: PluginIntUtils.hexToInt(json['logIndex']),
removed: json['removed'],
topics: List<String>.from(json['topics'] ?? []),
transactionHash: json['transactionHash'],
transactionIndex: PluginIntUtils.hexToInt(json['transactionIndex']),
);
}