ProcessingEvent_WillFetchFirstBlock.fromMap constructor

ProcessingEvent_WillFetchFirstBlock.fromMap(
  1. Map<String, dynamic> map
)

Implementation

ProcessingEvent_WillFetchFirstBlock.fromMap(Map<String, dynamic> map) {
  if (!map.containsKey('type') || map['type'] != 'WillFetchFirstBlock') {
    throw ('Wrong map data');
  } else {
    _type = 'WillFetchFirstBlock';
  }
}