Map<String, dynamic> toJson() { var json = <String, dynamic>{}; json['type'] = getType().toShortString(); json['versionName'] = versionName; json['branch'] = branch; return json; }