NiceComponentInfo.fromJson constructor

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

Implementation

factory NiceComponentInfo.fromJson(Map<String, dynamic> json) {
  return NiceComponentInfo(
    name: json['name'] as String,
    path: json['path'] as String,
    estimatedSizeBytes: json['estimatedSizeBytes'] as int? ?? 0,
    dependencies: Set<String>.from(json['dependencies'] as List? ?? []),
    usedBy: Set<String>.from(json['usedBy'] as List? ?? []),
    isExported: json['isExported'] as bool? ?? false,
    isUsed: json['isUsed'] as bool? ?? false,
  );
}