Making AppAPI entities serializable