encodeToBytes static method
Uint8List
encodeToBytes(
- Object? o, {
- bool pretty = false,
- JsonFieldMatcher? maskField,
- String maskText = '***',
- JsonFieldMatcher? removeField,
- bool removeNullFields = false,
- ToEncodableJsonProvider? toEncodableProvider,
- ToEncodable? toEncodable,
- EntityHandlerProvider? entityHandlerProvider,
- EntityCache? entityCache,
- bool? autoResetEntityCache,
Implementation
static Uint8List encodeToBytes(Object? o,
{bool pretty = false,
JsonFieldMatcher? maskField,
String maskText = '***',
JsonFieldMatcher? removeField,
bool removeNullFields = false,
ToEncodableJsonProvider? toEncodableProvider,
ToEncodable? toEncodable,
EntityHandlerProvider? entityHandlerProvider,
EntityCache? entityCache,
bool? autoResetEntityCache}) {
var jsonEncoder = _buildJsonEncoder(
maskField,
maskText,
removeField,
removeNullFields,
toEncodableProvider,
toEncodable,
entityHandlerProvider,
entityCache);
return jsonEncoder.encodeToBytes(o,
pretty: pretty, autoResetEntityCache: autoResetEntityCache);
}