toJson method
Converts a WindowsSecurityContextOptions instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempGmsaCredentialSpec = gmsaCredentialSpec;
final tempGmsaCredentialSpecName = gmsaCredentialSpecName;
final tempHostProcess = hostProcess;
final tempRunAsUserName = runAsUserName;
if (tempGmsaCredentialSpec != null) {
jsonData['gmsaCredentialSpec'] = tempGmsaCredentialSpec;
}
if (tempGmsaCredentialSpecName != null) {
jsonData['gmsaCredentialSpecName'] = tempGmsaCredentialSpecName;
}
if (tempHostProcess != null) {
jsonData['hostProcess'] = tempHostProcess;
}
if (tempRunAsUserName != null) {
jsonData['runAsUserName'] = tempRunAsUserName;
}
return jsonData;
}