encode static method

String encode(
  1. SuspensionReason value
)

Implementation

static String encode(SuspensionReason value) {
	switch (value) {
		case SuspensionReason.notInsured:
			return 'notInsured';
		case SuspensionReason.noReasonGiven:
			return 'noReasonGiven';
		case SuspensionReason.isHospitalized:
			return 'isHospitalized';
		case SuspensionReason.outsideOfCountry:
			return 'outsideOfCountry';
		case SuspensionReason.changeOfMutuality:
			return 'changeOfMutuality';
		}
}