toMap method
Implementation
@override
Map<String, dynamic> toMap() {
var json = <String, dynamic>{
'type': 'torch',
'icon': {
'on': {'default': _torchOnBase64Image, 'pressed': _torchOnPressedBase64Image},
'off': {'default': _torchOffBase64Image, 'pressed': _torchOffPressedBase64Image}
}
};
return json;
}