data_class_plugin library

Classes

DataClass
Adding this annotation to a class enables it to create common data class functionality
DefaultValue<T>
Enum
Adding this annotation to an enum enables it to create common data class functionality
JsonConverter<FieldType, JsonType>
Interface that custom converters can use to register a convertation between 2 types
JsonConverterRegistrant
JsonKey<T>
Adding the JsonKey annotation to a field makes it customizable when generating fromJson/toJson methods
Union
Implementors of this interface can create union types
UnionJsonKeyValue

Properties

jsonConverterRegistrant JsonConverterRegistrant
Registrant for adding new converters used by fromJson and toJson
final

Functions

deepEquality(dynamic a, dynamic b) bool

Typedefs

FromJsonConverter<T> = T Function(dynamic value, Map json, String keyName)
ToJsonConverter<T> = Object? Function(T value)