SolidFormattingSet.fromJson constructor

SolidFormattingSet.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SolidFormattingSet.fromJson(Map<String, dynamic> json) {
  return SolidFormattingSet(
    lowerThreshold: _parseDouble(json['lower_threshold']) ?? 0.0,
    higherThreshold: _parseDouble(json['higher_threshold']) ?? 100.0,
    color: json['color']?.toString() ?? '#FFFFFF',
  );
}