ToggleModel.fromJson constructor
Implementation
ToggleModel.fromJson(Map<String, dynamic> json, String type, bool isBeforeHeader)
:name = json['name'],
description = json['description'],
time = MutableLiveData(initValue:json['time']),
values = json['values'].cast<String>(),
chosenValue = MutableLiveData(initValue:json['chosen_value']), super(json['id'], type, isBeforeHeader) ;