encode static method

String encode(
  1. Gender value
)

Implementation

static String encode(Gender value) {
	switch (value) {
		case Gender.male:
			return 'male';
		case Gender.female:
			return 'female';
		case Gender.indeterminate:
			return 'indeterminate';
		case Gender.changed:
			return 'changed';
		case Gender.changedToMale:
			return 'changedToMale';
		case Gender.changedToFemale:
			return 'changedToFemale';
		case Gender.unknown:
			return 'unknown';
		}
}