encode static method
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';
}
}