|  | @@ -7,17 +7,15 @@ import org.json.JSONObject;
 | 
	
		
			
			| 7 | 7 |  
 | 
	
		
			
			| 8 | 8 |  public class InterpolationParser {
 | 
	
		
			
			| 9 | 9 |      public static Interpolation parse(JSONObject json, String interpolation) {
 | 
	
		
			
			| 10 |  | -        Interpolation result = Interpolation.DEFAULT;
 | 
	
		
			
			| 11 |  | -        if (json.has(interpolation)) {
 | 
	
		
			
			| 12 |  | -            switch (json.optString(interpolation)) {
 | 
	
		
			
			| 13 |  | -                case "decelerate":
 | 
	
		
			
			| 14 |  | -                    result = Interpolation.DECELERATING;
 | 
	
		
			
			| 15 |  | -                    break;
 | 
	
		
			
			| 16 |  | -                case "accelerate":
 | 
	
		
			
			| 17 |  | -                    result = Interpolation.ACCELERATING;
 | 
	
		
			
			| 18 |  | -                    break;
 | 
	
		
			
			| 19 |  | -            }
 | 
	
		
			
			|  | 10 | +        switch (json.optString(interpolation, "default")) {
 | 
	
		
			
			|  | 11 | +            case "decelerate":
 | 
	
		
			
			|  | 12 | +                return Interpolation.DECELERATE;
 | 
	
		
			
			|  | 13 | +            case "accelerateDecelerate":
 | 
	
		
			
			|  | 14 | +                return Interpolation.ACCELERATE_DECELERATE;
 | 
	
		
			
			|  | 15 | +            case "accelerate":
 | 
	
		
			
			|  | 16 | +                return Interpolation.ACCELERATE;
 | 
	
		
			
			|  | 17 | +            default:
 | 
	
		
			
			|  | 18 | +                return Interpolation.DEFAULT;
 | 
	
		
			
			| 20 | 19 |          }
 | 
	
		
			
			| 21 |  | -        return result;
 | 
	
		
			
			| 22 | 20 |      }
 | 
	
		
			
			| 23 | 21 |  }
 |