/// <summary> /// Initializes a new instance of the <see cref="ResponseBoundingBox" /> class. /// </summary> /// <param name="envelope">envelope (required).</param> /// <param name="boxes">boxes (required).</param> public ResponseBoundingBox(ResponseBox envelope = default(ResponseBox), List <ResponseBox> boxes = default(List <ResponseBox>)) { // to ensure "envelope" is required (not null) this.Envelope = envelope ?? throw new ArgumentNullException("envelope is a required property for ResponseBoundingBox and cannot be null");; // to ensure "boxes" is required (not null) this.Boxes = boxes ?? throw new ArgumentNullException("boxes is a required property for ResponseBoundingBox and cannot be null");; }
/// <summary> /// Initializes a new instance of the <see cref="ResponseBoundingBox" /> class. /// </summary> /// <param name="envelope">envelope (required).</param> /// <param name="boxes">boxes (required).</param> public ResponseBoundingBox(ResponseBox envelope = default(ResponseBox), List <ResponseBox> boxes = default(List <ResponseBox>)) { // to ensure "envelope" is required (not null) if (envelope == null) { throw new InvalidDataException("envelope is a required property for ResponseBoundingBox and cannot be null"); } else { this.Envelope = envelope; } // to ensure "boxes" is required (not null) if (boxes == null) { throw new InvalidDataException("boxes is a required property for ResponseBoundingBox and cannot be null"); } else { this.Boxes = boxes; } }