Serializes the given data into a string.
@override String serialize(T data) { return json.encode(data); }