toJson method

  1. @override
Object toJson()
override

Converts this object to something serializable in JSON.

Implementation

@override
Object toJson() => (focus == null)
    ? <Object>['zoomBy', amount]
    : <Object>[
        'zoomBy',
        amount,
        <double>[focus!.dx, focus!.dy]
      ];