Site.fromJson constructor

Site.fromJson(
  1. Map json_
)

Implementation

Site.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        approved: json_.containsKey('approved')
            ? json_['approved'] as core.bool
            : null,
        directorySiteId: json_.containsKey('directorySiteId')
            ? json_['directorySiteId'] as core.String
            : null,
        directorySiteIdDimensionValue: json_
                .containsKey('directorySiteIdDimensionValue')
            ? DimensionValue.fromJson(json_['directorySiteIdDimensionValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        idDimensionValue: json_.containsKey('idDimensionValue')
            ? DimensionValue.fromJson(json_['idDimensionValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        keyName: json_.containsKey('keyName')
            ? json_['keyName'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        siteContacts: json_.containsKey('siteContacts')
            ? (json_['siteContacts'] as core.List)
                .map((value) => SiteContact.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        siteSettings: json_.containsKey('siteSettings')
            ? SiteSettings.fromJson(
                json_['siteSettings'] as core.Map<core.String, core.dynamic>)
            : null,
        subaccountId: json_.containsKey('subaccountId')
            ? json_['subaccountId'] as core.String
            : null,
        videoSettings: json_.containsKey('videoSettings')
            ? SiteVideoSettings.fromJson(
                json_['videoSettings'] as core.Map<core.String, core.dynamic>)
            : null,
      );