EditorSelection.fromJson constructor

EditorSelection.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EditorSelection.fromJson(Map<String, dynamic> json) =>
    EditorSelection(
      filePath: json['filePath'] as String,
      startLine: json['startLine'] as int,
      startColumn: json['startColumn'] as int,
      endLine: json['endLine'] as int,
      endColumn: json['endColumn'] as int,
      selectedText: json['selectedText'] as String,
    );