I am trying make custom JsonConverter using JsonConverter in dart but I am not able to use it with error message saying “Classes can only extend other classes.”
Do I need to import something to use JsonConverter? or what am I missing?
class MyJsonConverter extends JsonConverter<Value, JSON> {
// TODO
}
@JsonSerializable()
@MyJsonConverter()
class Example {
final Value property;
}