InventoryWindowsUpdatePackage.fromJson constructor

InventoryWindowsUpdatePackage.fromJson(
  1. Map _json
)

Implementation

InventoryWindowsUpdatePackage.fromJson(core.Map _json)
    : this(
        categories: _json.containsKey('categories')
            ? (_json['categories'] as core.List)
                .map<InventoryWindowsUpdatePackageWindowsUpdateCategory>(
                    (value) =>
                        InventoryWindowsUpdatePackageWindowsUpdateCategory
                            .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<core.String>((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<core.String>((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,
      );