Map<String, dynamic> toJson() { return { "variation": variation.toRawString(), "reason": reason.toRawString(), "config": config.toJson(), }; }