encode method
Serialize state to json encodable object
Implementation
@override
Map<String, dynamic> encode() {
return {
"devices": value.devices.map((e) => slugify(e.name)).toList(),
"frame": value.hasFrame,
"orientation": value.orientation.name,
};
}