ResultOfQueryCollection.fromMap constructor

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

Implementation

ResultOfQueryCollection.fromMap(Map<String, dynamic> map) {
  if (map.containsKey('result') && (map['result'] != null)) {
    _result = [];
    for (var el in map['result']) {
      _result.add(el);
    }
  } else {
    throw ('Wrong map data');
  }
}