encode method

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

Implementation

@override
dynamic encode(PgrServiceApplicationStatus self) {
  switch (self) {
    case PgrServiceApplicationStatus.created:
      return 'CREATED';
    case PgrServiceApplicationStatus.pendingAssignment:
      return 'PENDING_ASSIGNMENT';
    case PgrServiceApplicationStatus.resolved:
      return 'RESOLVED';
    case PgrServiceApplicationStatus.rejected:
      return 'REJECTED';
    case PgrServiceApplicationStatus.cancelled:
      return 'CANCELLED';
  }
}