getSnapshots method

Future<MixinResponse<List<Snapshot>>> getSnapshots({
  1. String? assetId,
  2. String? offset,
  3. int limit = 30,
  4. String? opponent,
  5. String? destination,
  6. String? tag,
})

Implementation

Future<MixinResponse<List<Snapshot>>> getSnapshots(
        {String? assetId,
        String? offset,
        int limit = 30,
        String? opponent,
        String? destination,
        String? tag}) =>
    MixinResponse.requestList(
      dio.get('/snapshots', queryParameters: <String, dynamic>{
        'asset': assetId,
        'offset': offset,
        'limit': limit,
        'opponent': opponent,
        'destination': destination,
        'tag': tag,
      }),
      Snapshot.fromJson,
    );