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,
      );