databaseSerializers top-level property

Serializers databaseSerializers
final

Implementation

final databaseSerializers = (SerializersBuilder()
      ..addPlugin(StandardJsonPlugin(discriminator: '@type'))
      ..add(BigIntSerializer())
      ..add(BoolSerializer())
      ..add(BuiltListSerializer())
      ..add(BuiltListMultimapSerializer())
      ..add(BuiltMapSerializer())
      ..add(BuiltSetSerializer())
      ..add(BuiltSetMultimapSerializer())
      ..add(Iso8601DateTimeSerializer())
      ..add(DurationSerializer())
      ..add(IntSerializer())
      ..add(Int64Serializer())
      ..add(DoubleSerializer())
      ..add(JsonObjectSerializer())
      ..add(NumSerializer())
      ..add(RegExpSerializer())
      ..add(StringSerializer())
      ..add(UriSerializer())
      ..add(_DateSerializer())
      ..add(_DocumentSerializer())
      ..addBuilderFactory(const FullType(BuiltList, [FullType.object]),
          () => ListBuilder<Object>())
      ..addBuilderFactory(
          const FullType(BuiltListMultimap, [FullType.object, FullType.object]),
          () => ListMultimapBuilder<Object, Object>())
      ..addBuilderFactory(
          const FullType(BuiltMap, [FullType.object, FullType.object]),
          () => MapBuilder<Object, Object>())
      ..addBuilderFactory(const FullType(BuiltSet, [FullType.object]),
          () => SetBuilder<Object>())
      ..addBuilderFactory(
          const FullType(BuiltSetMultimap, [FullType.object, FullType.object]),
          () => SetMultimapBuilder<Object, Object>()))
    .build();