exportCollection method

String exportCollection({
  1. Iterable<NetLensMock>? mocks,
  2. String name = 'NetLens',
})

Returns mocks, all mocks by default, as a Postman collection named name. See NetLensPostmanCollectionCodec.

Implementation

String exportCollection({
  Iterable<NetLensMock>? mocks,
  String name = 'NetLens',
}) => _collectionCodec.encode((mocks ?? this.mocks).toList(), name: name);