toJson method

Map<String, dynamic> toJson()

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},
    };