OSPolicyResourceFileResource.fromJson constructor

OSPolicyResourceFileResource.fromJson(
  1. Map json_
)

Implementation

OSPolicyResourceFileResource.fromJson(core.Map json_)
    : this(
        content: json_.containsKey('content')
            ? json_['content'] as core.String
            : null,
        file: json_.containsKey('file')
            ? OSPolicyResourceFile.fromJson(
                json_['file'] as core.Map<core.String, core.dynamic>)
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        permissions: json_.containsKey('permissions')
            ? json_['permissions'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );