toJson method

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

Encodees the object to JSON. For the format, see fromDynamic.

Implementation

@override
Map<String, dynamic> toJson() => {
      'runnerOverlayColor': ThemeEncoder.encodeColor(runnerOverlayColor),
      'showRunnerStatus': showRunnerStatus,
      'showStepText': showStepText,
      'statusAlignment': statusAlignment.toString(),
      'statusBackgroundColor':
          ThemeEncoder.encodeColor(statusBackgroundColor),
      'statusErrorColor': ThemeEncoder.encodeColor(statusErrorColor),
      'statusOpacity': statusOpacity,
      'statusProgressColor': ThemeEncoder.encodeColor(statusProgressColor),
      'statusSuccessColor': ThemeEncoder.encodeColor(statusSuccessColor),
      'statusTextColor': ThemeEncoder.encodeColor(statusTextColor),
    };