VectorsdbCollectionList.fromMap constructor

VectorsdbCollectionList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory VectorsdbCollectionList.fromMap(
  Map<String, dynamic> map,
) {
  map = {
    'total': 0,
    'collections': [],
    ...map,
  };

  return VectorsdbCollectionList(
    total: map['total'],
    collections: List<VectorsdbCollection>.from(
      map['collections'].map((p) => VectorsdbCollection.fromMap(p)),
    ),
  );
}