encode<T> static method
Object?
encode<T>(
- T value, {
- Encodable<
T> ? using, - bool isHumanReadable = true,
- List<
CustomTypeDelegate> customTypes = const [],
Implementation
static Object? encode<T>(
T value, {
Encodable<T>? using,
bool isHumanReadable = true,
List<CustomTypeDelegate> customTypes = const [],
}) {
final encoder = StandardEncoder(isHumanReadable, customTypes);
encoder.encodeObject(value, using: using);
return encoder._value;
}