$SiteContact.fromJson constructor Null safety

$SiteContact.fromJson(
  1. Map _json
)

Implementation

$SiteContact.fromJson(core.Map _json)
    : this(
        address: _json.containsKey('address')
            ? _json['address'] as core.String
            : null,
        contactType: _json.containsKey('contactType')
            ? _json['contactType'] as core.String
            : null,
        email:
            _json.containsKey('email') ? _json['email'] as core.String : null,
        firstName: _json.containsKey('firstName')
            ? _json['firstName'] as core.String
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        lastName: _json.containsKey('lastName')
            ? _json['lastName'] as core.String
            : null,
        phone:
            _json.containsKey('phone') ? _json['phone'] as core.String : null,
        title:
            _json.containsKey('title') ? _json['title'] as core.String : null,
      );