toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'backgroundColor': backgroundColor?.value,
    'selectionFillColor': selectionFillColor?.value,
    'selectionStrokeColor': selectionStrokeColor?.value,
    'selectionShadowColor': selectionShadowColor?.value,
    'selectionStyle': selectionStyle?.name,
    'previewTitleAttributes': previewTitleAttributes?.toJson(),
    'previewSubtitleAttributes': previewSubtitleAttributes?.toJson(),
    'albumTitleAttributes': albumTitleAttributes?.toJson(),
  };
}