toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final name = this.name;
  final pythonVersion = this.pythonVersion;
  final scriptLocation = this.scriptLocation;
  return {
    if (name != null) 'Name': name,
    if (pythonVersion != null) 'PythonVersion': pythonVersion,
    if (scriptLocation != null) 'ScriptLocation': scriptLocation,
  };
}