Amenities.fromJson constructor

Amenities.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Amenities.fromJson(Map<String, dynamic> json) {
  wifi = json['wifi'] != null ?  Wifi.fromJson(json['wifi']) : null;
  seat = json['seat'] != null ?  Seat.fromJson(json['seat']) : null;
  power = json['power'] != null ?  Power.fromJson(json['power']) : null;
}