class ViewModel extends LinkedHashMap<String,Object> {
    public ViewModel(){
        super();
    }
    public void setFlashes(List<Flash> flashes){<FILL_FUNCTION_BODY>}
}

        List<Map<String,Object>> flashList = new ArrayList<Map<String,Object>>();
        this.put("flashes", flashList);
        for(Flash flash: flashes) {
            Map<String, Object> flashModel = new HashMap<String, Object>();
            flashModel.put("kind", flash.getKind());
            flashModel.put("message", flash.getMessage());
            flashList.add(flashModel);
        }
    
<methods>public void <init>() ,public void <init>(int) ,public void <init>(Map<? extends java.lang.String,? extends java.lang.Object>) ,public void <init>(int, float) ,public void <init>(int, float, boolean) ,public void clear() ,public boolean containsValue(java.lang.Object) ,public Set<Entry<java.lang.String,java.lang.Object>> entrySet() ,public void forEach(BiConsumer<? super java.lang.String,? super java.lang.Object>) ,public java.lang.Object get(java.lang.Object) ,public java.lang.Object getOrDefault(java.lang.Object, java.lang.Object) ,public Set<java.lang.String> keySet() ,public void replaceAll(BiFunction<? super java.lang.String,? super java.lang.Object,? extends java.lang.Object>) ,public Collection<java.lang.Object> values() <variables>final boolean accessOrder,transient Entry<java.lang.String,java.lang.Object> head,private static final long serialVersionUID,transient Entry<java.lang.String,java.lang.Object> tail