SourceFrame.fromJson constructor

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

Create from JSON map (as received over DTD).

Implementation

factory SourceFrame.fromJson(Map<String, dynamic> json) => SourceFrame(
      file: json['file'] as String,
      line: json['line'] as int,
      col: json['col'] as int,
      desc: json['desc'] as String?,
      type: (json['type'] as String?) ?? 'rohd',
    );