create method

  1. @override
Future<Map<String, dynamic>> create (
  1. Map<String, dynamic> data,
  2. [Map<String, dynamic> params]
)
override

Creates a resource.

Implementation

@override
Future<Map<String, dynamic>> create(data,
    [Map<String, dynamic> params]) async {
  await _load();
  var created = await _store.create(data, params).then(_jsonifyToSD);
  await _save();
  return created;
}