BoardingAndSeatingInfo.fromJson constructor

BoardingAndSeatingInfo.fromJson(
  1. Map json_
)

Implementation

BoardingAndSeatingInfo.fromJson(core.Map json_)
    : this(
        boardingDoor: json_.containsKey('boardingDoor')
            ? json_['boardingDoor'] as core.String
            : null,
        boardingGroup: json_.containsKey('boardingGroup')
            ? json_['boardingGroup'] as core.String
            : null,
        boardingPosition: json_.containsKey('boardingPosition')
            ? json_['boardingPosition'] as core.String
            : null,
        boardingPrivilegeImage: json_.containsKey('boardingPrivilegeImage')
            ? Image.fromJson(json_['boardingPrivilegeImage']
                as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        seatAssignment: json_.containsKey('seatAssignment')
            ? LocalizedString.fromJson(json_['seatAssignment']
                as core.Map<core.String, core.dynamic>)
            : null,
        seatClass: json_.containsKey('seatClass')
            ? json_['seatClass'] as core.String
            : null,
        seatNumber: json_.containsKey('seatNumber')
            ? json_['seatNumber'] as core.String
            : null,
        sequenceNumber: json_.containsKey('sequenceNumber')
            ? json_['sequenceNumber'] as core.String
            : null,
      );