toJson method
Implementation
Map<String, dynamic> toJson() {
final launchFile = this.launchFile;
final packageName = this.packageName;
final environmentVariables = this.environmentVariables;
final postLaunchFile = this.postLaunchFile;
final preLaunchFile = this.preLaunchFile;
return {
'launchFile': launchFile,
'packageName': packageName,
if (environmentVariables != null)
'environmentVariables': environmentVariables,
if (postLaunchFile != null) 'postLaunchFile': postLaunchFile,
if (preLaunchFile != null) 'preLaunchFile': preLaunchFile,
};
}