encode static method

String encode(
  1. DeactivationReason value
)

Implementation

static String encode(DeactivationReason value) {
	switch (value) {
		case DeactivationReason.deceased:
			return 'deceased';
		case DeactivationReason.moved:
			return 'moved';
		case DeactivationReason.otherDoctor:
			return 'other_doctor';
		case DeactivationReason.retired:
			return 'retired';
		case DeactivationReason.noContact:
			return 'no_contact';
		case DeactivationReason.unknown:
			return 'unknown';
		case DeactivationReason.none:
			return 'none';
		}
}