toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final filePath = this.filePath;
  final filePosition = this.filePosition;
  final relativeFileVersion = this.relativeFileVersion;
  return {
    if (filePath != null) 'filePath': filePath,
    if (filePosition != null) 'filePosition': filePosition,
    if (relativeFileVersion != null)
      'relativeFileVersion': relativeFileVersion.toValue(),
  };
}