toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (brightness != null) 'brightness': brightness!,
      if (maxBrightness != null) 'maxBrightness': maxBrightness!,
      if (path != null) 'path': path!,
    };