toJson method

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

Converts a BackgroundTypeWallpaper object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.value,
    'document': document.toJson(),
    'dark_theme_dimming': darkThemeDimming,
    'is_blurred': isBlurred,
    'is_moving': isMoving,
  };
}