getDevices method

Future<ListDevicesResponse> getDevices ()

Gets a list of user devices.

Implementation

Future<ListDevicesResponse> getDevices() async {
  final response = await get('/devices');
  return decode<ListDevicesResponse>(
      response.data, ListDevicesResponse.fromJson);
}