core.Map<core.String, core.dynamic> toJson() => { if (command != null) 'command': command!, if (exitCode != null) 'exitCode': exitCode!, };