encodeValueDefault method
String
encodeValueDefault(
- dynamic value, {
- String? connectionName,
})
Implementation
String encodeValueDefault(value, {String? connectionName}) {
if (value == null)
return 'null';
if (value is num)
return encodeNumber(value);
if (value is String)
return encodeString(value);
if (value is DateTime)
return encodeDateTime(value, isDateOnly: false);
if (value is bool || value is BigInt)
return value.toString();
if (value is Iterable)
return encodeArray(value);
return encodeJson(value);
}