encode method

  1. @override
dynamic encode(
  1. EnumValues self
)

Implementation

@override
dynamic encode(EnumValues self) {
  switch (self) {
    case EnumValues.campaignName:
      return "campaignName";
    case EnumValues.eventType:
      return "eventType";
    case EnumValues.draft:
      return "Draft";
    case EnumValues.submit:
      return "Submit";
    case EnumValues.sessions:
      return "sessions";
    case EnumValues.dateOfDelivery:
      return "dateOfDelivery";
    case EnumValues.entryTime:
      return "entryTime";
    case EnumValues.exitTime:
      return "exitTime";
    case EnumValues.entry:
      return "ENTRY";
    case EnumValues.exit:
      return "EXIT";
    case EnumValues.active:
      return "ACTIVE";
    case EnumValues.inactive:
      return "INACTIVE";
    case EnumValues.latitude:
      return "latitude";
    case EnumValues.longitude:
      return "longitude";
    case EnumValues.boundaryCode:
      return "boundaryCode";
  }
}