Map<String, Object?> toJson() { var decision = this.decision; final json = <String, Object?>{}; if (decision != null) { json[r'decision'] = decision.value; } return json; }