WindowsUpdatePackage.fromJson constructor

WindowsUpdatePackage.fromJson(
  1. Map json_
)

Implementation

WindowsUpdatePackage.fromJson(core.Map json_)
    : this(
        categories: json_.containsKey('categories')
            ? (json_['categories'] as core.List)
                .map((value) => WindowsUpdateCategory.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        kbArticleIds: json_.containsKey('kbArticleIds')
            ? (json_['kbArticleIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        lastDeploymentChangeTime:
            json_.containsKey('lastDeploymentChangeTime')
                ? json_['lastDeploymentChangeTime'] as core.String
                : null,
        moreInfoUrls: json_.containsKey('moreInfoUrls')
            ? (json_['moreInfoUrls'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        revisionNumber: json_.containsKey('revisionNumber')
            ? json_['revisionNumber'] as core.int
            : null,
        supportUrl: json_.containsKey('supportUrl')
            ? json_['supportUrl'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        updateId: json_.containsKey('updateId')
            ? json_['updateId'] as core.String
            : null,
      );