getKnownDevices method

Future<Iterable<KnownDevice>> getKnownDevices()

Gets all known devices for the current user

Implementation

Future<Iterable<KnownDevice>> getKnownDevices() async {
  final response = await _get('/api/known_device');

  return response.data['items'].map<KnownDevice>((e) => KnownDevice.fromJson(e));
}