EcoCertification.fromJson constructor Null safety

EcoCertification.fromJson(
  1. Map _json
)

Implementation

EcoCertification.fromJson(core.Map _json)
    : this(
        awarded: _json.containsKey('awarded')
            ? _json['awarded'] as core.bool
            : null,
        awardedException: _json.containsKey('awardedException')
            ? _json['awardedException'] as core.String
            : null,
        ecoCertificate: _json.containsKey('ecoCertificate')
            ? _json['ecoCertificate'] as core.String
            : null,
      );