ViewsFromUnit.fromJson constructor

ViewsFromUnit.fromJson(
  1. Map json_
)

Implementation

ViewsFromUnit.fromJson(core.Map json_)
    : this(
        beachView: json_.containsKey('beachView')
            ? json_['beachView'] as core.bool
            : null,
        beachViewException: json_.containsKey('beachViewException')
            ? json_['beachViewException'] as core.String
            : null,
        cityView: json_.containsKey('cityView')
            ? json_['cityView'] as core.bool
            : null,
        cityViewException: json_.containsKey('cityViewException')
            ? json_['cityViewException'] as core.String
            : null,
        gardenView: json_.containsKey('gardenView')
            ? json_['gardenView'] as core.bool
            : null,
        gardenViewException: json_.containsKey('gardenViewException')
            ? json_['gardenViewException'] as core.String
            : null,
        lakeView: json_.containsKey('lakeView')
            ? json_['lakeView'] as core.bool
            : null,
        lakeViewException: json_.containsKey('lakeViewException')
            ? json_['lakeViewException'] as core.String
            : null,
        landmarkView: json_.containsKey('landmarkView')
            ? json_['landmarkView'] as core.bool
            : null,
        landmarkViewException: json_.containsKey('landmarkViewException')
            ? json_['landmarkViewException'] as core.String
            : null,
        oceanView: json_.containsKey('oceanView')
            ? json_['oceanView'] as core.bool
            : null,
        oceanViewException: json_.containsKey('oceanViewException')
            ? json_['oceanViewException'] as core.String
            : null,
        poolView: json_.containsKey('poolView')
            ? json_['poolView'] as core.bool
            : null,
        poolViewException: json_.containsKey('poolViewException')
            ? json_['poolViewException'] as core.String
            : null,
        valleyView: json_.containsKey('valleyView')
            ? json_['valleyView'] as core.bool
            : null,
        valleyViewException: json_.containsKey('valleyViewException')
            ? json_['valleyViewException'] as core.String
            : null,
      );