Violation.fromJson constructor

Violation.fromJson(
  1. Map json_
)

Implementation

Violation.fromJson(core.Map json_)
    : this(
        beginTime: json_.containsKey('beginTime')
            ? json_['beginTime'] as core.String
            : null,
        category: json_.containsKey('category')
            ? json_['category'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        folderId: json_.containsKey('folderId')
            ? json_['folderId'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nonCompliantOrgPolicy: json_.containsKey('nonCompliantOrgPolicy')
            ? json_['nonCompliantOrgPolicy'] as core.String
            : null,
        remediation: json_.containsKey('remediation')
            ? Remediation.fromJson(
                json_['remediation'] as core.Map<core.String, core.dynamic>)
            : null,
        resolveTime: json_.containsKey('resolveTime')
            ? json_['resolveTime'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );