extractOtherMembers function
Utility to extract "other members" from GeoJSON objects according to RFC 7946 specification.
Implementation
Map<String, dynamic> extractOtherMembers(
Map<String, dynamic> json, List<String> standardKeys) {
final otherMembers = <String, dynamic>{};
json.forEach((key, value) {
if (!standardKeys.contains(key)) {
otherMembers[key] = value;
}
});
return otherMembers;
}