toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'text': text,
    if (range != null) 'range': range!.toJson(),
    if (styleSheetId != null) 'styleSheetId': styleSheetId!.toJson(),
    if (name != null) 'name': name,
    if (physicalAxes != null) 'physicalAxes': physicalAxes!.toJson(),
    if (logicalAxes != null) 'logicalAxes': logicalAxes!.toJson(),
  };
}