Scroll.deserialize constructor Null safety

Scroll.deserialize(
  1. Map<String, String> json,
  2. DeserializeFinderFactory finderFactory
)

Deserializes this command from the value generated by serialize.

Implementation

Scroll.deserialize(super.json, super.finderFactory)
  : dx = double.parse(json['dx']!),
    dy = double.parse(json['dy']!),
    duration = Duration(microseconds: int.parse(json['duration']!)),
    frequency = int.parse(json['frequency']!),
    super.deserialize();