toJson method
Serializes this sview into a json Map
Implementation
Map<String, dynamic> toJson() => {
if (key != null) 'key': key,
if (name != null) 'name': name,
'position': position,
'type': {'name': type.backendName},
};