get method

  1. @override
Future<T?> get()
override

Asynchronously returns an object of type T from the API endpoint.

Implementation

@override
Future<T?> get() async {
  final json = await getJson();
  return json == null ? null : deserializer(json);
}