encode static method

String encode(
  1. TopicRole value
)

Implementation

static String encode(TopicRole value) {
	switch (value) {
		case TopicRole.participant:
			return 'PARTICIPANT';
		case TopicRole.admin:
			return 'ADMIN';
		case TopicRole.owner:
			return 'OWNER';
		}
}