LocationRange.fromJson constructor

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

Implementation

factory LocationRange.fromJson(Map<String, dynamic> json) {
  return LocationRange(
    scriptId: runtime.ScriptId.fromJson(json['scriptId'] as String),
    start: ScriptPosition.fromJson(json['start'] as Map<String, dynamic>),
    end: ScriptPosition.fromJson(json['end'] as Map<String, dynamic>),
  );
}