post method

  1. @override
Future<T?> post(
  1. T? obj
)
override

Asynchronously posts an obj of type T to the API endpoint using POST.

Returns the (updated) obj.

Implementation

@override
Future<T?> post(T? obj) async {
  final json = await postJson(obj == null ? null : serializer(obj));
  return json == null ? null : deserializer(json);
}