Last changes not published
This commit is contained in:
parent
ac65ccf990
commit
21ec08303a
43 changed files with 607 additions and 613 deletions
|
|
@ -1,9 +1,10 @@
|
|||
import 'package:bson_objectid/bson_objectid.dart';
|
||||
import 'package:objectid/objectid.dart';
|
||||
|
||||
objectIdFromJson(String json) {
|
||||
return new ObjectId.fromHexString(json);
|
||||
return new ObjectId.fromHexString(
|
||||
json.replaceFirst("ObjectId(", "").replaceAll(")", ""));
|
||||
}
|
||||
|
||||
objectIdToJson(ObjectId o) {
|
||||
return o.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue