encode method

Implementation

String encode(InboxPreviewInboxTypeEnum data) => data.value;