toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'verb': verb.name,
  'scheme': scheme.name,
  'pressIn': pressIn.toJson(),
  'release': release.toJson(),
  'releaseAlt': releaseAlt?.toJson(),
  'depthCdp': depthCdp,
  'scalePermille': scalePermille,
  'cornerPermille': cornerPermille,
  'squishPermille': squishPermille,
  'stateLayerSnap': stateLayerSnap,
  'entry': entry.name,
  'entryScalePermille': entryScalePermille,
  'entryOffsetCdp': entryOffsetCdp,
  'entrySpring': entrySpring?.toJson(),
  'fx': fx.name,
  'stepMs': stepMs,
  'impact': impact.name,
  'impactPermille': impactPermille,
  'releaseHaptic': releaseHaptic,
  'releaseImpactPermille': releaseImpactPermille,
};