Map<String, dynamic> toJson() { return <String, dynamic>{ if (type != null) r'type': type, if (geometry != null) r'geometry': geometry, if (properties != null) r'properties': properties, }; }