Map<String, dynamic> toMap() { return { "localizedReason": localizedReason, "constraint": constraint.value, "policy": policy.value, }; }