SiteContact.fromJson constructor

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