load method
Load list of payments
Implementation
Future<List<Payment>> load() async {
final response = await WebClient().get(
'${InvoiceNinjaAdmin.url}/api/v1/payments',
token: InvoiceNinjaAdmin.token);
return PaymentList.fromJson(response).data;
}