Serialize the populated Json object.
@override Map<String, dynamic>? serialize(T? value) => value?.toJson();