decode method

  1. @override
PgrServiceApplicationStatus decode(
  1. dynamic value
)

Implementation

@override
PgrServiceApplicationStatus decode(dynamic value) {
  switch (value) {
    case 'CREATED':
      return PgrServiceApplicationStatus.created;
    case 'PENDING_ASSIGNMENT':
      return PgrServiceApplicationStatus.pendingAssignment;
    case 'RESOLVED':
      return PgrServiceApplicationStatus.resolved;
    case 'REJECTED':
      return PgrServiceApplicationStatus.rejected;
    case 'CANCELLED':
      return PgrServiceApplicationStatus.cancelled;
    default:
      throw MapperException.unknownEnumValue(value);
  }
}