toEJson function

EJsonValue? toEJson(
  1. Object? value
)

Converts value to EJson

Throws MissingEncoder if no encoder is registered for value's type.

Implementation

@pragma('vm:prefer-inline')

/// Converts [value] to EJson
///
/// Throws [MissingEncoder] if no encoder is registered for [value]'s type.
EJsonValue toEJson(Object? value) => _encodeAny(value);