todos-contra-el-fuego-mobile/lib/objectIdUtils.dart
vjrj 7a4c9fb3bc fix: resolve 2 remaining strict analysis errors
- introPage.dart: Convert fireItems to proper static function closure
- mainDrawer.dart: Convert unreadCount int to String for Text widget
2026-03-06 11:21:06 +01:00

10 lines
243 B
Dart

import 'package:objectid/objectid.dart';
ObjectId objectIdFromJson(String json) {
return ObjectId.fromHexString(
json.replaceFirst('ObjectId(', '').replaceAll(')', ''));
}
String objectIdToJson(ObjectId o) {
return o.toString();
}