toJson method

Map<String, dynamic> toJson()
override

Implementation

Map<String, dynamic> toJson() {
  final json = super.toJson();
  json.addAll({
    'stepSize': stepSize,
    'starsColor': starsColor?.toHex(),
  });
  return json;
}