Location.fromJson constructor

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

Implementation

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