toJson method

Map<String, dynamic> toJson()

Converts this ConnectionLabel to JSON

Implementation

Map<String, dynamic> toJson() {
  final json = _$ConnectionLabelToJson(this);
  // Include observable values in JSON
  json['text'] = _text.value;
  json['anchor'] = _anchor.value;
  json['offset'] = _offset.value;
  return json;
}