TicketSeat.fromJson constructor

TicketSeat.fromJson(
  1. Map json_
)

Implementation

TicketSeat.fromJson(core.Map json_)
    : this(
        coach:
            json_.containsKey('coach') ? json_['coach'] as core.String : null,
        customFareClass: json_.containsKey('customFareClass')
            ? LocalizedString.fromJson(json_['customFareClass']
                as core.Map<core.String, core.dynamic>)
            : null,
        fareClass: json_.containsKey('fareClass')
            ? json_['fareClass'] as core.String
            : null,
        seat: json_.containsKey('seat') ? json_['seat'] as core.String : null,
        seatAssignment: json_.containsKey('seatAssignment')
            ? LocalizedString.fromJson(json_['seatAssignment']
                as core.Map<core.String, core.dynamic>)
            : null,
      );