construct method
Construct from the supplied Map, only check for the keys we need.
Implementation
void construct(Map data) {
if (!(data[moacResultKey] is bool)) {
_syncing = true;
if (data.containsKey('startingBlock')) {
_startingBlock = MoacUtilities.hexToInt(data['startingBlock']);
}
if (data.containsKey('currentBlock')) {
_currentBlock = MoacUtilities.hexToInt(data['currentBlock']);
}
if (data.containsKey('highestBlock')) {
_highestBlock = MoacUtilities.hexToInt(data['highestBlock']);
}
}
}