use Moo::Role;
+has id => (is => 'ro');
+
has dependencies => (is => 'ro', default => sub { [] });
has was_run => (is => 'rw');
return @res;
}
+sub as_structure {
+ my ($self) = @_;
+ my %data = %$self;
+ delete $data{dependencies} unless @{$data{dependencies}};
+ my $id = delete $data{id};
+ +{ $id => \%data };
+}
+
1;