DirectorySite.fromJson constructor

DirectorySite.fromJson(
  1. Map json_
)

Implementation

DirectorySite.fromJson(core.Map json_)
    : this(
        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,
        inpageTagFormats: json_.containsKey('inpageTagFormats')
            ? (json_['inpageTagFormats'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        interstitialTagFormats: json_.containsKey('interstitialTagFormats')
            ? (json_['interstitialTagFormats'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        settings: json_.containsKey('settings')
            ? DirectorySiteSettings.fromJson(
                json_['settings'] as core.Map<core.String, core.dynamic>)
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );