title: Handle different structure of some object in same Airline API
body: <p>I am working on API but always getting different structure which is mention below.
  please help me how to handle.</p>
  <p>first response:- when I search result for one-way I am getting below response</p>
  <pre><code>      &quot;OriginDestinationOption&quot;:{
                      &quot;FlightSegment&quot;:{
                         &quot;Status&quot;:&quot;HS&quot;,
                         &quot;DepartureAirport&quot;:{
                            &quot;CodeContext&quot;:&quot;IATA&quot;,
                            &quot;LocationCode&quot;:&quot;IST&quot;
                         },
                         &quot;Comment&quot;:&quot;&quot;,
                         &quot;ConnectionType&quot;:&quot;DOMESTIC&quot;,
                         &quot;FareBasisCode&quot;:&quot;V&quot;,
                         &quot;ArrivalAirport&quot;:{
                            &quot;CodeContext&quot;:&quot;IATA&quot;,
                            &quot;LocationCode&quot;:&quot;ESB&quot;
                         },
                         &quot;BookingClassAvails&quot;:{
                            &quot;CabinType&quot;:&quot;Economy&quot;,
                            &quot;BookingClassAvail&quot;:&quot;&quot;
                         },
                         &quot;DepartureDay&quot;:&quot;Wed&quot;,
                         &quot;NumberInParty&quot;:&quot;1&quot;,
                         &quot;ResBookDesigCode&quot;:&quot;Y&quot;,
                         &quot;E_TicketEligibility&quot;:true,
                         &quot;RPH&quot;:&quot;1&quot;,
                         &quot;DepartureDateTime&quot;:&quot;2021-12-22T10:55:00.000+03:00&quot;,
                         &quot;ArrivalDateTime&quot;:&quot;2021-12-22T12:00:00.000+03:00&quot;,
                         &quot;ValidConnectionInd&quot;:false,
                         &quot;FlightNumber&quot;:&quot;TK2118&quot;,
                         &quot;OperatingAirline&quot;:{
                            &quot;CompanyShortName&quot;:&quot;TURKISH AIRLINES&quot;,
                            &quot;Description&quot;:&quot;&quot;,
                            &quot;Code&quot;:&quot;TK&quot;
                         }
                      },
                      &quot;RPH&quot;:&quot;1&quot;
                   }
  </code></pre>
  <p>second Response : getting this response when I search for round trip</p>
  <pre><code> &quot;OriginDestinationOption&quot;: [{
                  &quot;FlightSegment&quot;: [{
                      &quot;DepartureDateTime&quot;: &quot;2020-10-02T10:05:00.000&quot;,
                      &quot;ArrivalDateTime&quot;: &quot;2020-10-02T11:15:00.000&quot;,
                      &quot;FlightNumber&quot;: &quot;2412&quot;,
                      &quot;FareBasisCode&quot;: &quot;V&quot;,
                      &quot;ValidConnectionInd&quot;: &quot;false&quot;,
                      &quot;RPH&quot;: &quot;1&quot;,
                      &quot;DepartureAirport&quot;: {
                          &quot;LocationCode&quot;: &quot;IST&quot;
                      },
                      &quot;ArrivalAirport&quot;: {
                          &quot;LocationCode&quot;: &quot;AYT&quot;
                      },
                      &quot;OperatingAirline&quot;: {
                          &quot;Code&quot;: &quot;TK&quot;
                      }
                  },
                  {
                      &quot;DepartureDateTime&quot;: &quot;2020-10-07T21:10:00.000&quot;,
                      &quot;ArrivalDateTime&quot;: &quot;2020-10-07T22:20:00.000&quot;,
                      &quot;FlightNumber&quot;: &quot;7541&quot;,
                      &quot;FareBasisCode&quot;: &quot;W&quot;,
                      &quot;ValidConnectionInd&quot;: &quot;false&quot;,
                      &quot;RPH&quot;: &quot;2&quot;,
                      &quot;DepartureAirport&quot;: {
                          &quot;LocationCode&quot;: &quot;AYT&quot;
                      },
                      &quot;ArrivalAirport&quot;: {
                          &quot;LocationCode&quot;: &quot;SAW&quot;
                      },
                      &quot;OperatingAirline&quot;: {
                          &quot;Code&quot;: &quot;TK&quot;
                      }
                  }]
              }]
  </code></pre>
  <p>I am using below classes for desterilize API response</p>
  <pre><code>    public class OriginDestinationOption
      {
          public FlightSegment FlightSegment { get; set; }
          public string RPH { get; set; }
      }
  
      public class OriginDestinationOptions
      {
          public List&lt;OriginDestinationOption&gt; OriginDestinationOption { get; set; }
      }
  
      public class AirItinerary
      {
          public OriginDestinationOptions OriginDestinationOptions { get; set; }
      }
  </code></pre>