Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.askfast.model;
 
 
 public enum AccountType
 {
     TRIAL, PRE_PAID, POST_PAID;
     
     @JsonCreator
    public static AccountType fromJson(String name) {
        if (name != null) {
            return AccountType.valueOf(name.toUpperCase());
        }
        return null;
    }
New to GrepCode? Check out our FAQ X