fromRawValue static method

IaCardLinkConsentEvent fromRawValue(
  1. String rawValue
)

Creates an instance from a raw string value.

Implementation

static IaCardLinkConsentEvent fromRawValue(String rawValue) {
  switch (rawValue) {
    case 'accepted':
      return IaCardLinkConsentEvent.accepted;
    case 'declined':
      return IaCardLinkConsentEvent.declined;
    default:
      throw ArgumentError('Unknown consent event: $rawValue');
  }
}