getById method

Future<Map<String, Object?>?> getById(
  1. String id
)

Implementation

Future<Map<String, Object?>?> getById(String id) async {
  var oid = ObjectId.tryParse(id);
  return getByOid(oid);
}