Encodes a value to JSON-compatible Dart objects.
@override Object encode(PlanEntry value) => value.toJson();