Info.fromJson constructor
Creates a Info from JSON data.
Implementation
factory Info.fromJson(Map<String, dynamic> json) {
final tempBuildDateJson = json['buildDate'];
final tempCompilerJson = json['compiler'];
final tempGitCommitJson = json['gitCommit'];
final tempGitTreeStateJson = json['gitTreeState'];
final tempGitVersionJson = json['gitVersion'];
final tempGoVersionJson = json['goVersion'];
final tempMajorJson = json['major'];
final tempMinorJson = json['minor'];
final tempPlatformJson = json['platform'];
final String tempBuildDate = tempBuildDateJson;
final String tempCompiler = tempCompilerJson;
final String tempGitCommit = tempGitCommitJson;
final String tempGitTreeState = tempGitTreeStateJson;
final String tempGitVersion = tempGitVersionJson;
final String tempGoVersion = tempGoVersionJson;
final String tempMajor = tempMajorJson;
final String tempMinor = tempMinorJson;
final String tempPlatform = tempPlatformJson;
return Info(
buildDate: tempBuildDate,
compiler: tempCompiler,
gitCommit: tempGitCommit,
gitTreeState: tempGitTreeState,
gitVersion: tempGitVersion,
goVersion: tempGoVersion,
major: tempMajor,
minor: tempMinor,
platform: tempPlatform,
);
}