toJson method

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

Implementation

@override
Map<String, Object?> toJson() => super.toJson()
  ..addAll({
    'numerator': numerator.toJson(),
    'denominator': denominator.toJson(),
    if (barSize != null) 'barSize': barSize.toString(),
    if (continued) 'continued': continued,
  });