public static PagingParams fromMap ( AnyValueMap map ) { Long skip = map . getAsNullableLong ( "skip" ) ; Long take = map . getAsNullableLong ( "take" ) ; boolean total = map . getAsBooleanWithDefault ( "total" , true ) ; return new PagingParams ( skip , take , total ) ; }
Creates a new PagingParams and sets it parameters from the AnyValueMap map