toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final executionRole = this.executionRole;
  final jupyterServerAppSettings = this.jupyterServerAppSettings;
  final kernelGatewayAppSettings = this.kernelGatewayAppSettings;
  final securityGroups = this.securityGroups;
  final sharingSettings = this.sharingSettings;
  final tensorBoardAppSettings = this.tensorBoardAppSettings;
  return {
    if (executionRole != null) 'ExecutionRole': executionRole,
    if (jupyterServerAppSettings != null)
      'JupyterServerAppSettings': jupyterServerAppSettings,
    if (kernelGatewayAppSettings != null)
      'KernelGatewayAppSettings': kernelGatewayAppSettings,
    if (securityGroups != null) 'SecurityGroups': securityGroups,
    if (sharingSettings != null) 'SharingSettings': sharingSettings,
    if (tensorBoardAppSettings != null)
      'TensorBoardAppSettings': tensorBoardAppSettings,
  };
}