/// <summary>
 /// Initializes a new instance of the <see cref="ResponseTimeFilterPostcodeDistrict" /> class.
 /// </summary>
 /// <param name="code">code (required).</param>
 /// <param name="properties">properties (required).</param>
 public ResponseTimeFilterPostcodeDistrict(String code = default(String), ResponseTimeFilterPostcodeDistrictProperties properties = default(ResponseTimeFilterPostcodeDistrictProperties))
 {
     // to ensure "code" is required (not null)
     this.Code = code ?? throw new ArgumentNullException("code is a required property for ResponseTimeFilterPostcodeDistrict and cannot be null");;
     // to ensure "properties" is required (not null)
     this.Properties = properties ?? throw new ArgumentNullException("properties is a required property for ResponseTimeFilterPostcodeDistrict and cannot be null");;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ResponseTimeFilterPostcodeDistrict" /> class.
        /// </summary>
        /// <param name="code">code (required).</param>
        /// <param name="properties">properties (required).</param>
        public ResponseTimeFilterPostcodeDistrict(String code = default(String), ResponseTimeFilterPostcodeDistrictProperties properties = default(ResponseTimeFilterPostcodeDistrictProperties))
        {
            // to ensure "code" is required (not null)
            if (code == null)
            {
                throw new InvalidDataException("code is a required property for ResponseTimeFilterPostcodeDistrict and cannot be null");
            }
            else
            {
                this.Code = code;
            }

            // to ensure "properties" is required (not null)
            if (properties == null)
            {
                throw new InvalidDataException("properties is a required property for ResponseTimeFilterPostcodeDistrict and cannot be null");
            }
            else
            {
                this.Properties = properties;
            }
        }