ConnectionLabel.fromJson constructor
Creates a ConnectionLabel from JSON
Implementation
factory ConnectionLabel.fromJson(Map<String, dynamic> json) {
final label = _$ConnectionLabelFromJson(json);
// Initialize observables from JSON
label._text.value = json['text'] as String;
label._anchor.value = (json['anchor'] as num?)?.toDouble() ?? 0.5;
label._offset.value = (json['offset'] as num?)?.toDouble() ?? 0.0;
return label;
}