TextMatch.fromJson constructor

TextMatch.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory TextMatch.fromJson(Map<String, Object?> json) => TextMatch(
  path: json['path'] as String,
  line: (json['line'] as num).toInt(),
  column: (json['column'] as num).toInt(),
  text: json['text'] as String,
  before: (json['before'] as List?)?.cast<String>() ?? const [],
  after: (json['after'] as List?)?.cast<String>() ?? const [],
);