import 'package:json_annotation/json_annotation.dart'; part 'info.g.dart'; @JsonSerializable() class Info { String version; String runtime; String os; String arch; bool inDocker; Info({ this.version = '', this.runtime = '', this.os = '', this.arch = '', this.inDocker = false, }); factory Info.fromJson(Map json) => _$InfoFromJson(json); Map toJson() => _$InfoToJson(this); }