EventAction.fromJson constructor Null safety

EventAction.fromJson(
  1. String value
)

Implementation

factory EventAction.fromJson(String value) =>
    _values[value] ?? (throw ArgumentError('Unsupported EventAction: "$value"'));