WindowsUpdate.fromJson constructor

WindowsUpdate.fromJson(
  1. Map json_
)

Implementation

WindowsUpdate.fromJson(core.Map json_)
    : this(
        categories: json_.containsKey('categories')
            ? (json_['categories'] as core.List)
                .map((value) => Category.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        identity: json_.containsKey('identity')
            ? Identity.fromJson(
                json_['identity'] as core.Map<core.String, core.dynamic>)
            : null,
        kbArticleIds: json_.containsKey('kbArticleIds')
            ? (json_['kbArticleIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        lastPublishedTimestamp: json_.containsKey('lastPublishedTimestamp')
            ? json_['lastPublishedTimestamp'] as core.String
            : null,
        supportUrl: json_.containsKey('supportUrl')
            ? json_['supportUrl'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );