Lodging.fromJson constructor

Lodging.fromJson(
  1. Map json_
)

Implementation

Lodging.fromJson(core.Map json_)
    : this(
        accessibility: json_.containsKey('accessibility')
            ? Accessibility.fromJson(
                json_['accessibility'] as core.Map<core.String, core.dynamic>)
            : null,
        activities: json_.containsKey('activities')
            ? Activities.fromJson(
                json_['activities'] as core.Map<core.String, core.dynamic>)
            : null,
        allUnits: json_.containsKey('allUnits')
            ? GuestUnitFeatures.fromJson(
                json_['allUnits'] as core.Map<core.String, core.dynamic>)
            : null,
        business: json_.containsKey('business')
            ? Business.fromJson(
                json_['business'] as core.Map<core.String, core.dynamic>)
            : null,
        commonLivingArea: json_.containsKey('commonLivingArea')
            ? LivingArea.fromJson(json_['commonLivingArea']
                as core.Map<core.String, core.dynamic>)
            : null,
        connectivity: json_.containsKey('connectivity')
            ? Connectivity.fromJson(
                json_['connectivity'] as core.Map<core.String, core.dynamic>)
            : null,
        families: json_.containsKey('families')
            ? Families.fromJson(
                json_['families'] as core.Map<core.String, core.dynamic>)
            : null,
        foodAndDrink: json_.containsKey('foodAndDrink')
            ? FoodAndDrink.fromJson(
                json_['foodAndDrink'] as core.Map<core.String, core.dynamic>)
            : null,
        guestUnits: json_.containsKey('guestUnits')
            ? (json_['guestUnits'] as core.List)
                .map((value) => GuestUnitType.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        healthAndSafety: json_.containsKey('healthAndSafety')
            ? HealthAndSafety.fromJson(json_['healthAndSafety']
                as core.Map<core.String, core.dynamic>)
            : null,
        housekeeping: json_.containsKey('housekeeping')
            ? Housekeeping.fromJson(
                json_['housekeeping'] as core.Map<core.String, core.dynamic>)
            : null,
        metadata: json_.containsKey('metadata')
            ? LodgingMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parking: json_.containsKey('parking')
            ? Parking.fromJson(
                json_['parking'] as core.Map<core.String, core.dynamic>)
            : null,
        pets: json_.containsKey('pets')
            ? Pets.fromJson(
                json_['pets'] as core.Map<core.String, core.dynamic>)
            : null,
        policies: json_.containsKey('policies')
            ? Policies.fromJson(
                json_['policies'] as core.Map<core.String, core.dynamic>)
            : null,
        pools: json_.containsKey('pools')
            ? Pools.fromJson(
                json_['pools'] as core.Map<core.String, core.dynamic>)
            : null,
        property: json_.containsKey('property')
            ? Property.fromJson(
                json_['property'] as core.Map<core.String, core.dynamic>)
            : null,
        services: json_.containsKey('services')
            ? Services.fromJson(
                json_['services'] as core.Map<core.String, core.dynamic>)
            : null,
        someUnits: json_.containsKey('someUnits')
            ? GuestUnitFeatures.fromJson(
                json_['someUnits'] as core.Map<core.String, core.dynamic>)
            : null,
        sustainability: json_.containsKey('sustainability')
            ? Sustainability.fromJson(json_['sustainability']
                as core.Map<core.String, core.dynamic>)
            : null,
        transportation: json_.containsKey('transportation')
            ? Transportation.fromJson(json_['transportation']
                as core.Map<core.String, core.dynamic>)
            : null,
        wellness: json_.containsKey('wellness')
            ? Wellness.fromJson(
                json_['wellness'] as core.Map<core.String, core.dynamic>)
            : null,
      );