BreakLocation.fromJson constructor

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

Implementation

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