encode method
Transforms o
to an encoded JSON.
- If
pretty
istrue
generates a pretty JSON, with indentation and line break.
Implementation
String encode(Object? o,
{bool pretty = false,
bool duplicatedEntitiesAsID = false,
bool? autoResetEntityCache}) {
return encoder.encode(o,
pretty: pretty,
duplicatedEntitiesAsID: duplicatedEntitiesAsID,
autoResetEntityCache: autoResetEntityCache);
}