LivingArea.fromJson constructor Null safety

LivingArea.fromJson(
  1. Map _json
)

Implementation

LivingArea.fromJson(core.Map _json)
    : this(
        accessibility: _json.containsKey('accessibility')
            ? LivingAreaAccessibility.fromJson(
                _json['accessibility'] as core.Map<core.String, core.dynamic>)
            : null,
        eating: _json.containsKey('eating')
            ? LivingAreaEating.fromJson(
                _json['eating'] as core.Map<core.String, core.dynamic>)
            : null,
        features: _json.containsKey('features')
            ? LivingAreaFeatures.fromJson(
                _json['features'] as core.Map<core.String, core.dynamic>)
            : null,
        layout: _json.containsKey('layout')
            ? LivingAreaLayout.fromJson(
                _json['layout'] as core.Map<core.String, core.dynamic>)
            : null,
        sleeping: _json.containsKey('sleeping')
            ? LivingAreaSleeping.fromJson(
                _json['sleeping'] as core.Map<core.String, core.dynamic>)
            : null,
      );