encodeToBytes method

Uint8List encodeToBytes(
  1. Object? o, {
  2. bool pretty = false,
  3. bool duplicatedEntitiesAsID = false,
  4. bool? autoResetEntityCache,
})

Sames as encode but returns a Uint8List.

Implementation

Uint8List encodeToBytes(Object? o,
        {bool pretty = false,
        bool duplicatedEntitiesAsID = false,
        bool? autoResetEntityCache}) =>
    encoder.encodeToBytes(o,
        pretty: pretty,
        duplicatedEntitiesAsID: duplicatedEntitiesAsID,
        autoResetEntityCache: autoResetEntityCache);