encode method

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

Implementation

@override
dynamic encode(Status self) {
  switch (self) {
    case Status.delivered:
      return "DELIVERED";
    case Status.notAdministered:
      return "NOT_ADMINISTERED";
    case Status.visited:
      return "VISITED";
    case Status.notVisited:
      return "NOT_VISITED";
    case Status.beneficiaryRefused:
      return "BENEFICIARY_REFUSED";
    case Status.beneficiaryReferred:
      return "BENEFICIARY_REFERRED";
    case Status.administeredSuccess:
      return "ADMINISTRATION_SUCCESS";
    case Status.administeredFailed:
      return "ADMINISTRATION_FAILED";
    case Status.inComplete:
      return "IN_COMPLETE";
    case Status.toAdminister:
      return "TO_ADMINISTER";
    case Status.registered:
      return "REGISTERED";
    case Status.notRegistered:
      return "NOT_REGISTERED";
    case Status.closeHousehold:
      return "CLOSED_HOUSEHOLD";
  }
}