MongoLong class

Helper model for MongoDB long number representation - Fixed BSON format

Annotations
  • @JsonSerializable.new()

Constructors

MongoLong(String value)
const
MongoLong.fromInt(int number)
factory
MongoLong.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toInt() int
toJson() Map<String, dynamic>
Custom toJson to ensure proper BSON format
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited