SourceCodeLocation.fromJson constructor

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

Implementation

factory SourceCodeLocation.fromJson(Map<String, dynamic> json) {
  return SourceCodeLocation(
    scriptId:
        json.containsKey('scriptId')
            ? runtime.ScriptId.fromJson(json['scriptId'] as String)
            : null,
    url: json['url'] as String,
    lineNumber: json['lineNumber'] as int,
    columnNumber: json['columnNumber'] as int,
  );
}