toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      if (detail != null) 'detail': detail,
      'label': label,
      if (length != null) 'length': length,
      if (selectionLength != null) 'selectionLength': selectionLength,
      if (selectionStart != null) 'selectionStart': selectionStart,
      if (sortText != null) 'sortText': sortText,
      if (start != null) 'start': start,
      if (text != null) 'text': text,
      if (type != null) 'type': type,
    };