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,
      );