encode method

FutureOr<Object?> encode(
  1. T value,
  2. PlatformFormat format
)

Encodes the data to platform representation. By default this is a simple passthrough function.

Implementation

FutureOr<Object?> encode(T value, PlatformFormat format) {
  return value;
}