encode static method

String encode(
  1. PersonalStatus value
)

Implementation

static String encode(PersonalStatus value) {
	switch (value) {
		case PersonalStatus.single:
			return 'single';
		case PersonalStatus.inCouple:
			return 'in_couple';
		case PersonalStatus.married:
			return 'married';
		case PersonalStatus.separated:
			return 'separated';
		case PersonalStatus.divorced:
			return 'divorced';
		case PersonalStatus.divorcing:
			return 'divorcing';
		case PersonalStatus.widowed:
			return 'widowed';
		case PersonalStatus.widower:
			return 'widower';
		case PersonalStatus.complicated:
			return 'complicated';
		case PersonalStatus.unknown:
			return 'unknown';
		case PersonalStatus.contract:
			return 'contract';
		case PersonalStatus.other:
			return 'other';
		case PersonalStatus.annulled:
			return 'annulled';
		case PersonalStatus.polygamous:
			return 'polygamous';
		}
}