LivingAreaLayout.fromJson constructor

LivingAreaLayout.fromJson(
  1. Map json_
)

Implementation

LivingAreaLayout.fromJson(core.Map json_)
    : this(
        balcony: json_.containsKey('balcony')
            ? json_['balcony'] as core.bool
            : null,
        balconyException: json_.containsKey('balconyException')
            ? json_['balconyException'] as core.String
            : null,
        livingAreaSqMeters: json_.containsKey('livingAreaSqMeters')
            ? (json_['livingAreaSqMeters'] as core.num).toDouble()
            : null,
        livingAreaSqMetersException:
            json_.containsKey('livingAreaSqMetersException')
                ? json_['livingAreaSqMetersException'] as core.String
                : null,
        loft: json_.containsKey('loft') ? json_['loft'] as core.bool : null,
        loftException: json_.containsKey('loftException')
            ? json_['loftException'] as core.String
            : null,
        nonSmoking: json_.containsKey('nonSmoking')
            ? json_['nonSmoking'] as core.bool
            : null,
        nonSmokingException: json_.containsKey('nonSmokingException')
            ? json_['nonSmokingException'] as core.String
            : null,
        patio:
            json_.containsKey('patio') ? json_['patio'] as core.bool : null,
        patioException: json_.containsKey('patioException')
            ? json_['patioException'] as core.String
            : null,
        stairs:
            json_.containsKey('stairs') ? json_['stairs'] as core.bool : null,
        stairsException: json_.containsKey('stairsException')
            ? json_['stairsException'] as core.String
            : null,
      );