Custom toJson to ensure proper BSON format
Map<String, dynamic> toJson() => { r'$numberLong': value, };