decode method
Implementation
@override
EnumValues decode(dynamic value) {
switch (value) {
case "campaignName":
return EnumValues.campaignName;
case "eventType":
return EnumValues.eventType;
case "Draft":
return EnumValues.draft;
case "Submit":
return EnumValues.submit;
case "sessions":
return EnumValues.sessions;
case "dateOfDelivery":
return EnumValues.dateOfDelivery;
case "entryTime":
return EnumValues.entryTime;
case "exitTime":
return EnumValues.exitTime;
case "ENTRY":
return EnumValues.entry;
case "EXIT":
return EnumValues.exit;
case "ACTIVE":
return EnumValues.active;
case "INACTIVE":
return EnumValues.inactive;
case "latitude":
return EnumValues.latitude;
case "longitude":
return EnumValues.longitude;
case "boundaryCode":
return EnumValues.boundaryCode;
default:
throw MapperException.unknownEnumValue(value);
}
}