SourceFile.fromJson constructor

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

Implementation

factory SourceFile.fromJson(Map<String, dynamic> json) => SourceFile(
      path: json['path'] as String,
      contentHash: json['contentHash'] as String,
      imports: List<String>.from(json['imports'] as List),
      exports: json['exports'] != null ? List<String>.from(json['exports'] as List) : const [],
      isTest: json['isTest'] as bool? ?? false,
      isGenerated: json['isGenerated'] as bool? ?? false,
    );