ParseACL.fromMap constructor
ParseACL.fromMap(
- dynamic map
A helper for creating a ParseACL from the wire. We iterate over it rather than just copying to permissionsById so that we can ensure it's the right format.
Implementation
factory ParseACL.fromMap(dynamic map) {
final parseACL = ParseACL();
if (map is Map<String, dynamic>) {
map.forEach((key, value) {
parseACL._map[key] = _Permissions.fromMap(value);
});
}
return parseACL;
}