Webproperty.fromJson constructor

Webproperty.fromJson(
  1. Map json_
)

Implementation

Webproperty.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        childLink: json_.containsKey('childLink')
            ? WebpropertyChildLink.fromJson(
                json_['childLink'] as core.Map<core.String, core.dynamic>)
            : null,
        created: json_.containsKey('created')
            ? core.DateTime.parse(json_['created'] as core.String)
            : null,
        dataRetentionResetOnNewActivity:
            json_.containsKey('dataRetentionResetOnNewActivity')
                ? json_['dataRetentionResetOnNewActivity'] as core.bool
                : null,
        dataRetentionTtl: json_.containsKey('dataRetentionTtl')
            ? json_['dataRetentionTtl'] as core.String
            : null,
        defaultProfileId: json_.containsKey('defaultProfileId')
            ? json_['defaultProfileId'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        industryVertical: json_.containsKey('industryVertical')
            ? json_['industryVertical'] as core.String
            : null,
        internalWebPropertyId: json_.containsKey('internalWebPropertyId')
            ? json_['internalWebPropertyId'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        level:
            json_.containsKey('level') ? json_['level'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parentLink: json_.containsKey('parentLink')
            ? WebpropertyParentLink.fromJson(
                json_['parentLink'] as core.Map<core.String, core.dynamic>)
            : null,
        permissions: json_.containsKey('permissions')
            ? WebpropertyPermissions.fromJson(
                json_['permissions'] as core.Map<core.String, core.dynamic>)
            : null,
        profileCount: json_.containsKey('profileCount')
            ? json_['profileCount'] as core.int
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        starred: json_.containsKey('starred')
            ? json_['starred'] as core.bool
            : null,
        updated: json_.containsKey('updated')
            ? core.DateTime.parse(json_['updated'] as core.String)
            : null,
        websiteUrl: json_.containsKey('websiteUrl')
            ? json_['websiteUrl'] as core.String
            : null,
      );