toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (endOffset != null) 'endOffset': endOffset!,
      if (endPosition != null) 'endPosition': endPosition!,
      if (startOffset != null) 'startOffset': startOffset!,
      if (startPosition != null) 'startPosition': startPosition!,
    };