toJson method
Converts a Info instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempBuildDate = buildDate;
final tempCompiler = compiler;
final tempGitCommit = gitCommit;
final tempGitTreeState = gitTreeState;
final tempGitVersion = gitVersion;
final tempGoVersion = goVersion;
final tempMajor = major;
final tempMinor = minor;
final tempPlatform = platform;
jsonData['buildDate'] = tempBuildDate;
jsonData['compiler'] = tempCompiler;
jsonData['gitCommit'] = tempGitCommit;
jsonData['gitTreeState'] = tempGitTreeState;
jsonData['gitVersion'] = tempGitVersion;
jsonData['goVersion'] = tempGoVersion;
jsonData['major'] = tempMajor;
jsonData['minor'] = tempMinor;
jsonData['platform'] = tempPlatform;
return jsonData;
}