read method

  1. @override
Future<ReadDbResult> read(
  1. Access access
)
override

Implementation

@override
Future<ReadDbResult> read(Access access) async {
  if (access.identifier == null) {
    throw BadRequests();
  }
  var d = data[access.collection]?[access.identifier];

  return ReadDbResult(data: d == null ? null : Map<String, dynamic>.from(d));
}