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