-+(TargetMouseScroll*) unstringifyImpl: (NSArray*) comps {
- NSParameterAssert([comps count] == 2);
- TargetMouseScroll* target = [[TargetMouseScroll alloc] init];
- [target setHowMuch: [[comps objectAtIndex:1] integerValue]];
- return target;
+- (NSDictionary *)serialize {
+ return @{ @"type": @"mscroll", @"amount": @(self.amount) };