-
- public AltosJson json() {
- AltosJson j = new AltosJson();
-
- j.put("along", along);
- j.put("across", across);
- j.put("through", through);
- return j;
- }
-
- public AltosMag(AltosJson j) {
- this();
-
- along = j.get_int("along", along);
- across = j.get_int("across", across);
- through = j.get_int("through", through);
- }
-
- public static AltosMag fromJson(AltosJson j, AltosMag def) {
- if (j == null)
- return def;
-
- return new AltosMag(j);
- }