toJson method Null safety

Map<String, dynamic> toJson(
  1. {ValueSerializer? serializer}
)

Converts this object into a representation that can be encoded with json. The serializer can be used to configure how individual values will be encoded. By default, DriftRuntimeOptions.defaultSerializer will be used. See ValueSerializer.defaults for details.

Implementation

Map<String, dynamic> toJson({ValueSerializer? serializer});