SourceContext.fromJson constructor

SourceContext.fromJson(
  1. Object? j
)

Implementation

factory SourceContext.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SourceContext(
    fileName: switch (json['fileName']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}