Geometry.fromJson(Map<String, dynamic> json) { location = json.containsKey('location') && json['location'] != null ? Location.fromJson(json['location']) : null; }