fromJson static method

BackgroundTypeWallpaper? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static BackgroundTypeWallpaper? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return BackgroundTypeWallpaper(
    isBlurred: (json['is_blurred'] as bool?) ?? false,
    isMoving: (json['is_moving'] as bool?) ?? false,
  );
}