ResourceReference.fromJson constructor

ResourceReference.fromJson(
  1. Map<String, Object?> map
)

Implementation

factory ResourceReference.fromJson(Map<String, Object?> map) {
  final submap = map['@'] as Map<String, Object?>;
  return ResourceReference(
    uri: Uri.file(submap['uri'] as String),
    line: submap['line'] as int,
    column: submap['column'] as int,
    arguments: Map<String, Object?>.from(map)..remove('@'),
  );
}