SustainabilityCertifications.fromJson constructor

SustainabilityCertifications.fromJson(
  1. Map json_
)

Implementation

SustainabilityCertifications.fromJson(core.Map json_)
    : this(
        breeamCertification: json_.containsKey('breeamCertification')
            ? json_['breeamCertification'] as core.String
            : null,
        breeamCertificationException:
            json_.containsKey('breeamCertificationException')
                ? json_['breeamCertificationException'] as core.String
                : null,
        ecoCertifications: json_.containsKey('ecoCertifications')
            ? (json_['ecoCertifications'] as core.List)
                .map((value) => EcoCertification.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        leedCertification: json_.containsKey('leedCertification')
            ? json_['leedCertification'] as core.String
            : null,
        leedCertificationException:
            json_.containsKey('leedCertificationException')
                ? json_['leedCertificationException'] as core.String
                : null,
      );