164 {
165 Statuses x;
166 x.status = data["status"].toString();
167 x.description = data["description"].toString();
168 x.abbreviation = data["abbreviation"].toString();
169 x.color = data["color"].toString();
170 x.closed= data["closed"].toBool();
171 x.can_be_run = data["can_be_run"].toBool();
172 x.ignored = data["ignored"].toBool();
173 if (data.contains("next")) {
174 const QVariantList next = data["next"].toList();
175 for (int i=0; i<next.size(); i++) {
176 x.next << Statuses::fromMap(next[i].toMap());
177 }
178 }
179 return x;
180}