update method

Future<T> update(
  1. dynamic id,
  2. Map source, {
  3. bool protected = true,
  4. bool verbose = false,
})

Implementation

Future<T> update(
  dynamic id,
  Map source, {
  bool protected = true,
  bool verbose = false,
}) async {
  final Response response = await put(
    '/$id',
    body: source,
    protected: protected,
    verbose: verbose,
  );
  final Map<String, Object?> data = response.data;

  return parser.fromJson(data);
}