In one of the crazier finishes to the NBA trade deadline, the Miami Heat ended up getting one of the biggest names at the deadline. Despite reports that Robert Sarver was set on making Goran Dragic finish out this season and trying to re-sign him this coming summer, Dragic was dealt in a flurry of deals by the Suns.

Let's grade the trade of Dragic to the Heat and a couple of picks to the Suns, along with other moving parts:

MIAMI HEAT ACQUIRE GORAN DRAGIC AND ZORAN DRAGIC

Assuming the Miami Heat are able to retain the services of Goran Dragic this summer when he becomes an unrestricted free agent, they may have come out way ahead at the trade deadline. The Heat are currently 22-30, sitting in the 8-seed with the Brooklyn Nets a game behind them. Missing the playoffs in 2015 was never going to be an option for the Heat, even after losing LeBron James in the summer. The Heat and their brass were consistently banging the drum of "being as competitive as ever" after losing LeBron and going to Plan C.

Things haven't gone well with injuries to Josh McRoberts, Dwyane Wade, and Chris Bosh throughout this season, but they're still within striking distance of being annoying in the playoffs. By acquiring Goran Dragic from the Phoenix Suns without upsetting the core of this team is a huge win for them. In Erik Spoelstra's ideal offense of constant movement, outside shooting, and dribble penetration to destroy the core values of the defense, Dragic checks every box.

The Dragic we've seen this season has allegedly been a disappointing result of the Suns sharing his time and role on the court with Eric Bledsoe and Isaiah Thomas. A year ago, Dragic was an All-NBA Third Team guard and looking for a big payday in 2015 free agency. The Heat's "gamble" here is that he returns to that form in an offense that emphasizes what he's good at doing and then can re-sign him this summer. Considering they were on his list of preferred destinations, that seems like a high possibility at the moment.

This move also takes the playmaking pressure off of Dwyane Wade and gives them a nice two-man game with Chris Bosh while Hassan Whiteside cleans up the misses on the boards. And in giving up Danny Granger (who hasn't completed their reclamation program), Justin Hamilton (their fifth or sixth big man), Shawne Williams (increasingly fluctuating role as floor-stretcher), Norris Cole (maybe their worst point guard of their three floor generals), and two first round picks (likely 2017 and 2019 and Pat Riley isn't big on building through the draft), they haven't really mortgaged much from their future.

Even if the Heat have to pay big money (more than doubling his $7.5 million salary this season) this summer to retain him, signing the 28-year-old Dragic to a five-year deal and having him through his prime is not a bad decision with the money and salary cap increasing with the new TV deal in 2016. The Heat's backcourt combinations with Wade, Dragic, Mario Chalmers, and Shabazz Napier over the next couple years allows them to play with size, speed, or any option they want at the two guard positions.

Pat Riley and the Heat have injected some life back into their roster and now become a pretty big problem in the Eastern Conference playoffs, even if they don't advance past the first round. And setting themselves up for the future, they could be a development of Whiteside away from becoming one of the contenders in a year or two.

Heat grade: A

PHOENIX SUNS ACQUIRE DANNY GRANGER, JUSTIN HAMILTON, SHAWNE WILLIAMS, NORRIS COLE AND TWO FIRST ROUND PICKS

This trade by the Suns seems pretty short-sighted with them just wanting a couple of first round picks and a lot of spare parts that are unlikely to get time in Phoenix's rotation. However, coupled with the other moves they made, including the acquisition of Brandon Knight, this becomes a much more palatable deal to make. Granger, Hamilton, and Cole are unlikely to be heavy contributors for the Suns the rest of this season. It's possible Cole (unless he actually got moved in the madness) is a backup point guard option for the Suns at some point, and he does have playoff experience.

But Cole is one of the worst open jump-shooters in the league and doesn't fit in all that well with what Jeff Hornacek likes to do. Williams was moved to the New Orleans Pelicans for John Salmons, and Salmons is as likely as Granger is to have an impact on a team that is still very deep on the perimeter. The big part of this particular trade is acquiring two first round picks for Dragic and avoid losing him for nothing.

Miami owes their 2015 pick to the Sixers after several trades, and if this move pushes the Heat into the playoffs securely, then the top 10 protection on the pick won't be necessary this summer. That means the next two first-round picks available to Phoenix are the 2017 and 2019 picks, respectively. Even if those picks are late first rounders in the coming years, the Suns will have even more assets to use or move as they continue rebuilding this roster.

The gamble for the Suns is the hope that Miami falls apart by either 2017, 2019, or for both years and those picks become very valuable as firsts. This isn't a great gamble but Phoenix has been so good under Ryan McDonough that this becomes a good acquisition of assets for the Suns. 

The first-round picks and the other trades put the grade a little higher than just this deal would be on its surface, but we still have to see how everything shakes out with the roster this summer before we know if it should be north or south of the current grade.

Suns' grade: B-, Sort of

Goran Dragic (USATSI)
Goran Dragic is headed to Miami. (USATSI)