encode abstract 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});