FileConfig.fromJson constructor

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

Implementation

factory FileConfig.fromJson(Map<String, dynamic> json) {
  return FileConfig(
    type: json['type'],
    files: (json['files'] as List<dynamic>)
        .map((fileJson) => FileDetail.fromJson(fileJson))
        .toList(),
    vectorType: json['vector_type'],
    category: json['category'],
    dbConnectionName: json['db_connection_name'],
    dbTableNames: List<String>.from(json['db_table_names']),
    dbType: json['db_type'],
  );
}