GridHighlightConfig.fromJson constructor
GridHighlightConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GridHighlightConfig.fromJson(Map<String, dynamic> json) {
return GridHighlightConfig(
showGridExtensionLines: json.containsKey('showGridExtensionLines')
? json['showGridExtensionLines'] as bool
: null,
showPositiveLineNumbers: json.containsKey('showPositiveLineNumbers')
? json['showPositiveLineNumbers'] as bool
: null,
showNegativeLineNumbers: json.containsKey('showNegativeLineNumbers')
? json['showNegativeLineNumbers'] as bool
: null,
showAreaNames: json.containsKey('showAreaNames')
? json['showAreaNames'] as bool
: null,
showLineNames: json.containsKey('showLineNames')
? json['showLineNames'] as bool
: null,
showTrackSizes: json.containsKey('showTrackSizes')
? json['showTrackSizes'] as bool
: null,
gridBorderColor: json.containsKey('gridBorderColor')
? dom.RGBA.fromJson(json['gridBorderColor'] as Map<String, dynamic>)
: null,
rowLineColor: json.containsKey('rowLineColor')
? dom.RGBA.fromJson(json['rowLineColor'] as Map<String, dynamic>)
: null,
columnLineColor: json.containsKey('columnLineColor')
? dom.RGBA.fromJson(json['columnLineColor'] as Map<String, dynamic>)
: null,
gridBorderDash: json.containsKey('gridBorderDash')
? json['gridBorderDash'] as bool
: null,
rowLineDash:
json.containsKey('rowLineDash') ? json['rowLineDash'] as bool : null,
columnLineDash: json.containsKey('columnLineDash')
? json['columnLineDash'] as bool
: null,
rowGapColor: json.containsKey('rowGapColor')
? dom.RGBA.fromJson(json['rowGapColor'] as Map<String, dynamic>)
: null,
rowHatchColor: json.containsKey('rowHatchColor')
? dom.RGBA.fromJson(json['rowHatchColor'] as Map<String, dynamic>)
: null,
columnGapColor: json.containsKey('columnGapColor')
? dom.RGBA.fromJson(json['columnGapColor'] as Map<String, dynamic>)
: null,
columnHatchColor: json.containsKey('columnHatchColor')
? dom.RGBA.fromJson(json['columnHatchColor'] as Map<String, dynamic>)
: null,
areaBorderColor: json.containsKey('areaBorderColor')
? dom.RGBA.fromJson(json['areaBorderColor'] as Map<String, dynamic>)
: null,
gridBackgroundColor: json.containsKey('gridBackgroundColor')
? dom.RGBA
.fromJson(json['gridBackgroundColor'] as Map<String, dynamic>)
: null,
);
}