toJson method
A JSON-encoded representation of this native platform test-configuration.
Unset values are not included.
Can be parsed back by TestNativePlatform.fromJson.
Implementation
@override
String toJson() {
return const JsonEncoder.withIndent(' ').convert(<String, dynamic>{
json_key.environment: ?_environment,
json_key.executable: ?_executable,
json_key.executableArguments: ?_executableArguments,
json_key.lineTerminator: ?_lineTerminator,
json_key.localeName: ?_localeName,
json_key.localHostname: ?_localHostname,
json_key.numberOfProcessors: ?_numberOfProcessors,
json_key.operatingSystem: ?_operatingSystem,
json_key.operatingSystemVersion: ?_operatingSystemVersion,
json_key.packageConfig: ?packageConfig,
json_key.pathSeparator: ?_pathSeparator,
json_key.resolvedExecutable: ?_resolvedExecutable,
json_key.script: ?_script?.toString(),
json_key.stdinSupportsAnsi: ?_stdinSupportsAnsi,
json_key.stdoutSupportsAnsi: ?_stdoutSupportsAnsi,
json_key.version: ?_version,
});
}