PlaceCommodity.fromJSON constructor

PlaceCommodity.fromJSON(
  1. Map data
)

Implementation

PlaceCommodity.fromJSON(Map<dynamic, dynamic> data):
      wifi = data["wifi"] ?? true,
      parking = data["parking"] ?? true,
      roomService = data["roomService"] ?? true,
      audioEquipment = data["audioEquipment"] ?? true,
      musicalInstruments = data["musicalInstruments"] ?? true,
      acousticConditioning = data['acousticConditioning'] ?? true,
      childAllowance = data["childAllowance"] ?? true,
      smokingAllowance = data["smokingAllowance"] ?? true,
      smokeDetector = data["smokeDetector"] ?? true,
      publicBathroom = data["publicBathroom"] ?? true,
      privateBathroom = data["privateBathroom"] ?? true,
      sharedPlace = data["sharedPlace"] ?? true;