OSPolicyResource.fromJson constructor

OSPolicyResource.fromJson(
  1. Map json_
)

Implementation

OSPolicyResource.fromJson(core.Map json_)
    : this(
        exec: json_.containsKey('exec')
            ? OSPolicyResourceExecResource.fromJson(
                json_['exec'] as core.Map<core.String, core.dynamic>)
            : null,
        file: json_.containsKey('file')
            ? OSPolicyResourceFileResource.fromJson(
                json_['file'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        pkg: json_.containsKey('pkg')
            ? OSPolicyResourcePackageResource.fromJson(
                json_['pkg'] as core.Map<core.String, core.dynamic>)
            : null,
        repository: json_.containsKey('repository')
            ? OSPolicyResourceRepositoryResource.fromJson(
                json_['repository'] as core.Map<core.String, core.dynamic>)
            : null,
      );