SecurityCenterProperties.fromJson constructor

SecurityCenterProperties.fromJson(
  1. Map json_
)

Implementation

SecurityCenterProperties.fromJson(core.Map json_)
    : this(
        folders: json_.containsKey('folders')
            ? (json_['folders'] as core.List)
                .map((value) => Folder.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resourceDisplayName: json_.containsKey('resourceDisplayName')
            ? json_['resourceDisplayName'] as core.String
            : null,
        resourceName: json_.containsKey('resourceName')
            ? json_['resourceName'] as core.String
            : null,
        resourceOwners: json_.containsKey('resourceOwners')
            ? (json_['resourceOwners'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        resourceParent: json_.containsKey('resourceParent')
            ? json_['resourceParent'] as core.String
            : null,
        resourceParentDisplayName:
            json_.containsKey('resourceParentDisplayName')
                ? json_['resourceParentDisplayName'] as core.String
                : null,
        resourceProject: json_.containsKey('resourceProject')
            ? json_['resourceProject'] as core.String
            : null,
        resourceProjectDisplayName:
            json_.containsKey('resourceProjectDisplayName')
                ? json_['resourceProjectDisplayName'] as core.String
                : null,
        resourceType: json_.containsKey('resourceType')
            ? json_['resourceType'] as core.String
            : null,
      );