public static CashierTransaction fromJson(
    		final Cashier cashier,
    		final JsonCommand command) {
        final Integer txnType = command.integerValueOfParameterNamed("txnType");
        final BigDecimal txnAmount = command.bigDecimalValueOfParameterNamed("txnAmount");
        final LocalDate txnDate = command.localDateValueOfParameterNamed("txnDate");
        final String entityType = command.stringValueOfParameterNamed("entityType");
        final String txnNote = command.stringValueOfParameterNamed("txnNote");
        final Long entityId = command.longValueOfParameterNamed("entityId");
        final String currencyCode = command.stringValueOfParameterNamed("currencyCode");
        // TODO: get client/loan/savings details
        return new CashierTransaction (cashier, txnType, txnAmount, txnDate, 
        		entityType, entityId, txnNote, currencyCode);
    }
public static CashierTransaction fromJson(
    		final Cashier cashier,
    		final JsonCommand command) {
        final Integer txnType = command.integerValueOfParameterNamed("txnType");
        final BigDecimal txnAmount = command.bigDecimalValueOfParameterNamed("txnAmount");
        final LocalDate txnDate = command.localDateValueOfParameterNamed("txnDate");
        final String entityType = command.stringValueOfParameterNamed("entityType");
        final String txnNote = command.stringValueOfParameterNamed("txnNote");
        final Long entityId = command.longValueOfParameterNamed("entityId");
        final String currencyCode = command.stringValueOfParameterNamed("currencyCode");
       
        return new CashierTransaction (cashier, txnType, txnAmount, txnDate, 
        		entityType, entityId, txnNote, currencyCode);
    }
public static cashiertransaction fromjson( final cashier cashier, final jsoncommand command) { final integer txntype = command.integervalueofparameternamed("txntype"); final bigdecimal txnamount = command.bigdecimalvalueofparameternamed("txnamount"); final localdate txndate = command.localdatevalueofparameternamed("txndate"); final string entitytype = command.stringvalueofparameternamed("entitytype"); final string txnnote = command.stringvalueofparameternamed("txnnote"); final long entityid = command.longvalueofparameternamed("entityid"); final string currencycode = command.stringvalueofparameternamed("currencycode"); return new cashiertransaction (cashier, txntype, txnamount, txndate, entitytype, entityid, txnnote, currencycode); }