IntegrationExpireBehavior.parse constructor

IntegrationExpireBehavior.parse(
  1. int value
)

Parse an IntegrationExpireBehavior from an int.

The value must be a valid integration expire behavior.

Implementation

factory IntegrationExpireBehavior.parse(int value) => IntegrationExpireBehavior.values.firstWhere(
      (behavior) => behavior.value == value,
      orElse: () => throw FormatException('Unknown integration expire behavior', value),
    );