toJson method

  1. @override
Map<String, Object?> toJson()
override

Implementation

@override
Map<String, Object?> toJson() => super.toJson()
  ..addAll({
    'mode': mode.toString(),
    'height': height.toString(),
    'width': width.toString(),
    if (depth != Measurement.zero) 'depth': depth.toString(),
    if (shift != Measurement.zero) 'shift': shift.toString(),
    // if (noBreak != false) 'noBreak': noBreak,
    if (breakPenalty != null) 'breakPenalty': breakPenalty,
    if (fill != false) 'fill': fill,
    if (alignerOrSpacer != false) 'alignerOrSpacer': alignerOrSpacer,
  });