JsonSerializer class

Inheritance

Constructors

JsonSerializer([bool writeIds = false])

Properties

hashCode int
The hash code for this object.
no setterinherited
result List
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writeIds bool
finalinherited

Methods

addId(Message message, List m, bool isVisible) → void
Add a non-null ID iff writeIds is enabled
addMessage(dynamic m) int
encodeCombined(CombinedMessage message, bool isVisible) List
Encodes a combined message as follows:
encodeMessage(Message message, {bool isVisible = false}) Object
encodePlural(PluralMessage message, bool isVisible) List
Encodes a plural message as follows:
encodeSelect(SelectMessage message, bool isVisible) List
Encodes a select message as follows:
encodeString(StringMessage message, bool isVisible) Object
Encodes a string message as follows:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(String hash, String locale, List<Message> messages, [List<int>? keepOnly]) Serialization<String>
override
toString() String
A string representation of this object.
inherited

Operators

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