findById method

Future<Quote?> findById(
  1. String id
)

Find an quote by its id

Implementation

Future<Quote?> findById(String id) async {
  final response = await WebClient().get(
      '${InvoiceNinjaAdmin.url}/api/v1/quotes/$id',
      token: InvoiceNinjaAdmin.token);

  return QuoteItem.fromJson(response).data;
}