/// <summary> /// Initializes a new instance of the <see cref="ResponseGeocodingGeoJsonFeature" /> class. /// </summary> /// <param name="type">type (required).</param> /// <param name="geometry">geometry (required).</param> /// <param name="properties">properties (required).</param> public ResponseGeocodingGeoJsonFeature(string type = default(string), ResponseGeocodingGeometry geometry = default(ResponseGeocodingGeometry), ResponseGeocodingProperties properties = default(ResponseGeocodingProperties)) { // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for ResponseGeocodingGeoJsonFeature and cannot be null"); } else { this.Type = type; } // to ensure "geometry" is required (not null) if (geometry == null) { throw new InvalidDataException("geometry is a required property for ResponseGeocodingGeoJsonFeature and cannot be null"); } else { this.Geometry = geometry; } // to ensure "properties" is required (not null) if (properties == null) { throw new InvalidDataException("properties is a required property for ResponseGeocodingGeoJsonFeature and cannot be null"); } else { this.Properties = properties; } }
/// <summary> /// Initializes a new instance of the <see cref="ResponseGeocodingGeoJsonFeature" /> class. /// </summary> /// <param name="type">type (required).</param> /// <param name="geometry">geometry (required).</param> /// <param name="properties">properties (required).</param> public ResponseGeocodingGeoJsonFeature(string type = default(string), ResponseGeocodingGeometry geometry = default(ResponseGeocodingGeometry), ResponseGeocodingProperties properties = default(ResponseGeocodingProperties)) { // to ensure "type" is required (not null) this.Type = type ?? throw new ArgumentNullException("type is a required property for ResponseGeocodingGeoJsonFeature and cannot be null");; // to ensure "geometry" is required (not null) this.Geometry = geometry ?? throw new ArgumentNullException("geometry is a required property for ResponseGeocodingGeoJsonFeature and cannot be null");; // to ensure "properties" is required (not null) this.Properties = properties ?? throw new ArgumentNullException("properties is a required property for ResponseGeocodingGeoJsonFeature and cannot be null");; }