ResultOfHash.fromMap constructor

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

Implementation

ResultOfHash.fromMap(Map<String, dynamic> map) {
  if (map.containsKey('hash') && (map['hash'] != null)) {
    _hash = map['hash'];
  } else {
    throw ('Wrong map data');
  }
}