toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (comparisonType != null) 'comparisonType': comparisonType!,
      if (description != null) 'description': description!,
      if (negativeColor != null) 'negativeColor': negativeColor!,
      if (negativeColorStyle != null)
        'negativeColorStyle': negativeColorStyle!,
      if (position != null) 'position': position!,
      if (positiveColor != null) 'positiveColor': positiveColor!,
      if (positiveColorStyle != null)
        'positiveColorStyle': positiveColorStyle!,
      if (textFormat != null) 'textFormat': textFormat!,
    };