toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (coach != null) 'coach': coach!,
      if (customFareClass != null) 'customFareClass': customFareClass!,
      if (fareClass != null) 'fareClass': fareClass!,
      if (seat != null) 'seat': seat!,
      if (seatAssignment != null) 'seatAssignment': seatAssignment!,
    };