LaunchConfig.fromJson constructor

LaunchConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LaunchConfig.fromJson(Map<String, dynamic> json) {
  return LaunchConfig(
    launchFile: json['launchFile'] as String,
    packageName: json['packageName'] as String,
    environmentVariables:
        (json['environmentVariables'] as Map<String, dynamic>?)
            ?.map((k, e) => MapEntry(k, e as String)),
    portForwardingConfig: json['portForwardingConfig'] != null
        ? PortForwardingConfig.fromJson(
            json['portForwardingConfig'] as Map<String, dynamic>)
        : null,
    streamUI: json['streamUI'] as bool?,
  );
}