create method

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

Implementation

Future<T> create(
  Map source, {
  bool protected = true,
  bool verbose = false,
}) async {
  final Response response = await post(
    '',
    body: source,
    protected: protected,
    verbose: verbose,
  );
  final Map<String, Object?> data = response.data;

  return parser.fromJson(data);
}