OSPolicyResourceExecResourceExec.fromJson constructor

OSPolicyResourceExecResourceExec.fromJson(
  1. Map json_
)

Implementation

OSPolicyResourceExecResourceExec.fromJson(core.Map json_)
    : this(
        args: json_.containsKey('args')
            ? (json_['args'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        file: json_.containsKey('file')
            ? OSPolicyResourceFile.fromJson(
                json_['file'] as core.Map<core.String, core.dynamic>)
            : null,
        interpreter: json_.containsKey('interpreter')
            ? json_['interpreter'] as core.String
            : null,
        outputFilePath: json_.containsKey('outputFilePath')
            ? json_['outputFilePath'] as core.String
            : null,
        script: json_.containsKey('script')
            ? json_['script'] as core.String
            : null,
      );