FoodAndDrink.fromJson constructor
FoodAndDrink.fromJson(
- Map json_
Implementation
FoodAndDrink.fromJson(core.Map json_)
: this(
bar: json_.containsKey('bar') ? json_['bar'] as core.bool : null,
barException: json_.containsKey('barException')
? json_['barException'] as core.String
: null,
breakfastAvailable: json_.containsKey('breakfastAvailable')
? json_['breakfastAvailable'] as core.bool
: null,
breakfastAvailableException:
json_.containsKey('breakfastAvailableException')
? json_['breakfastAvailableException'] as core.String
: null,
breakfastBuffet: json_.containsKey('breakfastBuffet')
? json_['breakfastBuffet'] as core.bool
: null,
breakfastBuffetException:
json_.containsKey('breakfastBuffetException')
? json_['breakfastBuffetException'] as core.String
: null,
buffet:
json_.containsKey('buffet') ? json_['buffet'] as core.bool : null,
buffetException: json_.containsKey('buffetException')
? json_['buffetException'] as core.String
: null,
dinnerBuffet: json_.containsKey('dinnerBuffet')
? json_['dinnerBuffet'] as core.bool
: null,
dinnerBuffetException: json_.containsKey('dinnerBuffetException')
? json_['dinnerBuffetException'] as core.String
: null,
freeBreakfast: json_.containsKey('freeBreakfast')
? json_['freeBreakfast'] as core.bool
: null,
freeBreakfastException: json_.containsKey('freeBreakfastException')
? json_['freeBreakfastException'] as core.String
: null,
restaurant: json_.containsKey('restaurant')
? json_['restaurant'] as core.bool
: null,
restaurantException: json_.containsKey('restaurantException')
? json_['restaurantException'] as core.String
: null,
restaurantsCount: json_.containsKey('restaurantsCount')
? json_['restaurantsCount'] as core.int
: null,
restaurantsCountException:
json_.containsKey('restaurantsCountException')
? json_['restaurantsCountException'] as core.String
: null,
roomService: json_.containsKey('roomService')
? json_['roomService'] as core.bool
: null,
roomServiceException: json_.containsKey('roomServiceException')
? json_['roomServiceException'] as core.String
: null,
tableService: json_.containsKey('tableService')
? json_['tableService'] as core.bool
: null,
tableServiceException: json_.containsKey('tableServiceException')
? json_['tableServiceException'] as core.String
: null,
twentyFourHourRoomService:
json_.containsKey('twentyFourHourRoomService')
? json_['twentyFourHourRoomService'] as core.bool
: null,
twentyFourHourRoomServiceException:
json_.containsKey('twentyFourHourRoomServiceException')
? json_['twentyFourHourRoomServiceException'] as core.String
: null,
vendingMachine: json_.containsKey('vendingMachine')
? json_['vendingMachine'] as core.bool
: null,
vendingMachineException: json_.containsKey('vendingMachineException')
? json_['vendingMachineException'] as core.String
: null,
);