Contact.fromJson constructor

Contact.fromJson(
  1. Map _json
)

Implementation

Contact.fromJson(core.Map _json)
    : this(
        email:
            _json.containsKey('email') ? _json['email'] as core.String : null,
        faxNumber: _json.containsKey('faxNumber')
            ? _json['faxNumber'] as core.String
            : null,
        phoneNumber: _json.containsKey('phoneNumber')
            ? _json['phoneNumber'] as core.String
            : null,
        postalAddress: _json.containsKey('postalAddress')
            ? PostalAddress.fromJson(
                _json['postalAddress'] as core.Map<core.String, core.dynamic>)
            : null,
      );