ChartEvent.fromJson constructor
ChartEvent.fromJson(
- Map<String, dynamic> json
)
Implementation
ChartEvent.fromJson(Map<String, dynamic> json)
: this.triggers = List<String>.from(json['triggers']),
this.enteredTrigger = ifNullReturnEmpty(json['entered_trigger']),
this.operators = json['operators'] != null
? List<String>.from(json['operators'])
: [],
this.enteredOperator = ifNullReturnEmpty(json['entered_operator']),
this.enteredValue = ifNullReturnEmpty(json['entered_value']),
this.textInputType = ifNullReturnEmpty(json['text_input_type']);