Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.coinapi.websocket.model._OHLCV_DslJsonConverter Maven / Gradle / Ivy
package io.coinapi.websocket.model;
public class _OHLCV_DslJsonConverter implements com.dslplatform.json.Configuration {
private static final java.nio.charset.Charset utf8 = java.nio.charset.Charset.forName("UTF-8");
@Override
public void configure(com.dslplatform.json.DslJson __dsljson) {
ObjectFormatConverter objectConverter = new ObjectFormatConverter(__dsljson);
__dsljson.registerBinder(io.coinapi.websocket.model.OHLCV.class, objectConverter);
__dsljson.registerReader(io.coinapi.websocket.model.OHLCV.class, objectConverter);
__dsljson.registerWriter(io.coinapi.websocket.model.OHLCV.class, objectConverter);
}
public final static class ObjectFormatConverter implements com.dslplatform.json.runtime.FormatConverter, com.dslplatform.json.JsonReader.BindObject {
private final boolean alwaysSerialize;
private final com.dslplatform.json.DslJson __dsljson;
ObjectFormatConverter(com.dslplatform.json.DslJson __dsljson) {
this.alwaysSerialize = !__dsljson.omitDefaults;
this.__dsljson = __dsljson;
}
public io.coinapi.websocket.model.OHLCV read(final com.dslplatform.json.JsonReader reader) throws java.io.IOException {
if (reader.wasNull()) return null;
return bind(reader, new io.coinapi.websocket.model.OHLCV());
}
private static final byte[] quoted_timePeriodStart = "\"time_period_start\":".getBytes(utf8);
private static final byte[] name_timePeriodStart = "time_period_start".getBytes(utf8);
private static final byte[] quoted_timeOpen = ",\"time_open\":".getBytes(utf8);
private static final byte[] name_timeOpen = "time_open".getBytes(utf8);
private static final byte[] quoted_priceOpen = ",\"price_open\":".getBytes(utf8);
private static final byte[] name_priceOpen = "price_open".getBytes(utf8);
private static final byte[] quoted_volumeTraded = ",\"volume_traded\":".getBytes(utf8);
private static final byte[] name_volumeTraded = "volume_traded".getBytes(utf8);
private static final byte[] quoted_priceClose = ",\"price_close\":".getBytes(utf8);
private static final byte[] name_priceClose = "price_close".getBytes(utf8);
private static final byte[] quoted_priceLow = ",\"price_low\":".getBytes(utf8);
private static final byte[] name_priceLow = "price_low".getBytes(utf8);
private static final byte[] quoted_sequence = ",\"sequence\":".getBytes(utf8);
private static final byte[] name_sequence = "sequence".getBytes(utf8);
private static final byte[] quoted_tradesCount = ",\"trades_count\":".getBytes(utf8);
private static final byte[] name_tradesCount = "trades_count".getBytes(utf8);
private static final byte[] quoted_priceHigh = ",\"price_high\":".getBytes(utf8);
private static final byte[] name_priceHigh = "price_high".getBytes(utf8);
private static final byte[] quoted_type = ",\"type\":".getBytes(utf8);
private static final byte[] name_type = "type".getBytes(utf8);
private static final byte[] quoted_timeClose = ",\"time_close\":".getBytes(utf8);
private static final byte[] name_timeClose = "time_close".getBytes(utf8);
private static final byte[] quoted_timePeriodEnd = ",\"time_period_end\":".getBytes(utf8);
private static final byte[] name_timePeriodEnd = "time_period_end".getBytes(utf8);
private static final byte[] quoted_periodId = ",\"period_id\":".getBytes(utf8);
private static final byte[] name_periodId = "period_id".getBytes(utf8);
private static final byte[] quoted_symbolId = ",\"symbol_id\":".getBytes(utf8);
private static final byte[] name_symbolId = "symbol_id".getBytes(utf8);
public final void write(final com.dslplatform.json.JsonWriter writer, final io.coinapi.websocket.model.OHLCV instance) {
if (instance == null) writer.writeNull();
else {
writer.writeByte((byte)'{');
if (alwaysSerialize) { writeContentFull(writer, instance); writer.writeByte((byte)'}'); }
else if (writeContentMinimal(writer, instance)) writer.getByteBuffer()[writer.size() - 1] = '}';
else writer.writeByte((byte)'}');
}
}
public void writeContentFull(final com.dslplatform.json.JsonWriter writer, final io.coinapi.websocket.model.OHLCV instance) {
writer.writeAscii(quoted_timePeriodStart);
if (instance.getTimePeriodStart() == null) writer.writeNull();
else com.dslplatform.json.JavaTimeConverter.serialize(instance.getTimePeriodStart(), writer);
writer.writeAscii(quoted_timeOpen);
if (instance.getTimeOpen() == null) writer.writeNull();
else com.dslplatform.json.JavaTimeConverter.serialize(instance.getTimeOpen(), writer);
writer.writeAscii(quoted_priceOpen);
if (instance.getPriceOpen() == null) writer.writeNull();
else com.dslplatform.json.NumberConverter.serialize(instance.getPriceOpen(), writer);
writer.writeAscii(quoted_volumeTraded);
if (instance.getVolumeTraded() == null) writer.writeNull();
else com.dslplatform.json.NumberConverter.serialize(instance.getVolumeTraded(), writer);
writer.writeAscii(quoted_priceClose);
if (instance.getPriceClose() == null) writer.writeNull();
else com.dslplatform.json.NumberConverter.serialize(instance.getPriceClose(), writer);
writer.writeAscii(quoted_priceLow);
if (instance.getPriceLow() == null) writer.writeNull();
else com.dslplatform.json.NumberConverter.serialize(instance.getPriceLow(), writer);
writer.writeAscii(quoted_sequence);
if (instance.getSequence() == null) writer.writeNull();
else com.dslplatform.json.NumberConverter.serialize(instance.getSequence(), writer);
writer.writeAscii(quoted_tradesCount);
if (instance.getTradesCount() == null) writer.writeNull();
else com.dslplatform.json.NumberConverter.serialize(instance.getTradesCount(), writer);
writer.writeAscii(quoted_priceHigh);
if (instance.getPriceHigh() == null) writer.writeNull();
else com.dslplatform.json.NumberConverter.serialize(instance.getPriceHigh(), writer);
writer.writeAscii(quoted_type);
if (instance.getType() == null) writer.writeNull();
else com.dslplatform.json.StringConverter.serialize(instance.getType(), writer);
writer.writeAscii(quoted_timeClose);
if (instance.getTimeClose() == null) writer.writeNull();
else com.dslplatform.json.JavaTimeConverter.serialize(instance.getTimeClose(), writer);
writer.writeAscii(quoted_timePeriodEnd);
if (instance.getTimePeriodEnd() == null) writer.writeNull();
else com.dslplatform.json.JavaTimeConverter.serialize(instance.getTimePeriodEnd(), writer);
writer.writeAscii(quoted_periodId);
if (instance.getPeriodId() == null) writer.writeNull();
else com.dslplatform.json.StringConverter.serialize(instance.getPeriodId(), writer);
writer.writeAscii(quoted_symbolId);
if (instance.getSymbolId() == null) writer.writeNull();
else com.dslplatform.json.StringConverter.serialize(instance.getSymbolId(), writer);
}
public boolean writeContentMinimal(final com.dslplatform.json.JsonWriter writer, final io.coinapi.websocket.model.OHLCV instance) {
boolean hasWritten = false;
if (instance.getTimePeriodStart() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_timePeriodStart); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.JavaTimeConverter.serialize(instance.getTimePeriodStart(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getTimeOpen() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_timeOpen); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.JavaTimeConverter.serialize(instance.getTimeOpen(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getPriceOpen() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_priceOpen); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.NumberConverter.serialize(instance.getPriceOpen(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getVolumeTraded() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_volumeTraded); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.NumberConverter.serialize(instance.getVolumeTraded(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getPriceClose() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_priceClose); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.NumberConverter.serialize(instance.getPriceClose(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getPriceLow() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_priceLow); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.NumberConverter.serialize(instance.getPriceLow(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getSequence() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_sequence); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.NumberConverter.serialize(instance.getSequence(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getTradesCount() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_tradesCount); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.NumberConverter.serialize(instance.getTradesCount(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getPriceHigh() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_priceHigh); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.NumberConverter.serialize(instance.getPriceHigh(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getType() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_type); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.StringConverter.serialize(instance.getType(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getTimeClose() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_timeClose); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.JavaTimeConverter.serialize(instance.getTimeClose(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getTimePeriodEnd() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_timePeriodEnd); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.JavaTimeConverter.serialize(instance.getTimePeriodEnd(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getPeriodId() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_periodId); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.StringConverter.serialize(instance.getPeriodId(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
if (instance.getSymbolId() != null) {
writer.writeByte((byte)'"'); writer.writeAscii(name_symbolId); writer.writeByte((byte)'"'); writer.writeByte((byte)':');
com.dslplatform.json.StringConverter.serialize(instance.getSymbolId(), writer);
writer.writeByte((byte)','); hasWritten = true;
}
return hasWritten;
}
public io.coinapi.websocket.model.OHLCV bind(final com.dslplatform.json.JsonReader reader, final io.coinapi.websocket.model.OHLCV instance) throws java.io.IOException {
if (reader.last() != '{') throw reader.newParseError("Expecting '{' for object start");
reader.getNextToken();
bindContent(reader, instance);
return instance;
}
public io.coinapi.websocket.model.OHLCV readContent(final com.dslplatform.json.JsonReader reader) throws java.io.IOException {
io.coinapi.websocket.model.OHLCV instance = new io.coinapi.websocket.model.OHLCV();
bindContent(reader, instance);
return instance;
}
public void bindContent(final com.dslplatform.json.JsonReader reader, final io.coinapi.websocket.model.OHLCV instance) throws java.io.IOException {
if (reader.last() == '}') return;
if (reader.fillNameWeakHash() != 1822 || !reader.wasLastName(name_timePeriodStart)) { bindSlow(reader, instance, 0); return; }
reader.getNextToken();
if (reader.wasNull()) instance.setTimePeriodStart(null);
else instance.setTimePeriodStart(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 960 || !reader.wasLastName(name_timeOpen)) { bindSlow(reader, instance, 1); return; }
reader.getNextToken();
if (reader.wasNull()) instance.setTimeOpen(null);
else instance.setTimeOpen(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 1060 || !reader.wasLastName(name_priceOpen)) { bindSlow(reader, instance, 2); return; }
reader.getNextToken();
instance.setPriceOpen(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 1387 || !reader.wasLastName(name_volumeTraded)) { bindSlow(reader, instance, 3); return; }
reader.getNextToken();
instance.setVolumeTraded(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 1160 || !reader.wasLastName(name_priceClose)) { bindSlow(reader, instance, 4); return; }
reader.getNextToken();
instance.setPriceClose(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 964 || !reader.wasLastName(name_priceLow)) { bindSlow(reader, instance, 5); return; }
reader.getNextToken();
instance.setPriceLow(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 857 || !reader.wasLastName(name_sequence)) { bindSlow(reader, instance, 6); return; }
reader.getNextToken();
instance.setSequence(com.dslplatform.json.NumberConverter.NULLABLE_INT_READER.read(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 1291 || !reader.wasLastName(name_tradesCount)) { bindSlow(reader, instance, 7); return; }
reader.getNextToken();
instance.setTradesCount(com.dslplatform.json.NumberConverter.NULLABLE_INT_READER.read(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 1042 || !reader.wasLastName(name_priceHigh)) { bindSlow(reader, instance, 8); return; }
reader.getNextToken();
instance.setPriceHigh(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 450 || !reader.wasLastName(name_type)) { bindSlow(reader, instance, 9); return; }
reader.getNextToken();
instance.setType(com.dslplatform.json.StringConverter.READER.read(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 1060 || !reader.wasLastName(name_timeClose)) { bindSlow(reader, instance, 10); return; }
reader.getNextToken();
if (reader.wasNull()) instance.setTimeClose(null);
else instance.setTimeClose(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 1575 || !reader.wasLastName(name_timePeriodEnd)) { bindSlow(reader, instance, 11); return; }
reader.getNextToken();
if (reader.wasNull()) instance.setTimePeriodEnd(null);
else instance.setTimePeriodEnd(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 943 || !reader.wasLastName(name_periodId)) { bindSlow(reader, instance, 12); return; }
reader.getNextToken();
instance.setPeriodId(com.dslplatform.json.StringConverter.READER.read(reader));
if (reader.getNextToken() == '}') return;
if (reader.last() != ',') throw reader.newParseError("Expecting ',' for other mandatory properties"); else reader.getNextToken();
if (reader.fillNameWeakHash() != 962 || !reader.wasLastName(name_symbolId)) { bindSlow(reader, instance, 13); return; }
reader.getNextToken();
instance.setSymbolId(com.dslplatform.json.StringConverter.READER.read(reader));
if (reader.getNextToken() != '}') {
if (reader.last() == ',') {
reader.getNextToken();
reader.fillNameWeakHash();
bindSlow(reader, instance, 14);
}
if (reader.last() != '}') throw reader.newParseError("Expecting '}' for object end");
}
}
private void bindSlow(final com.dslplatform.json.JsonReader reader, final io.coinapi.websocket.model.OHLCV instance, int index) throws java.io.IOException {
switch(reader.getLastHash()) {
case -115896057:
reader.getNextToken();
instance.setSymbolId(com.dslplatform.json.StringConverter.READER.read(reader));
reader.getNextToken();
break;
case -564132972:
reader.getNextToken();
instance.setPeriodId(com.dslplatform.json.StringConverter.READER.read(reader));
reader.getNextToken();
break;
case 1304481546:
reader.getNextToken();
if (reader.wasNull()) instance.setTimePeriodEnd(null);
else instance.setTimePeriodEnd(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
reader.getNextToken();
break;
case -871869137:
reader.getNextToken();
if (reader.wasNull()) instance.setTimeClose(null);
else instance.setTimeClose(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
reader.getNextToken();
break;
case 1361572173:
reader.getNextToken();
instance.setType(com.dslplatform.json.StringConverter.READER.read(reader));
reader.getNextToken();
break;
case -1562081949:
reader.getNextToken();
instance.setPriceHigh(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
reader.getNextToken();
break;
case -888505390:
reader.getNextToken();
instance.setTradesCount(com.dslplatform.json.NumberConverter.NULLABLE_INT_READER.read(reader));
reader.getNextToken();
break;
case 1011085160:
reader.getNextToken();
instance.setSequence(com.dslplatform.json.NumberConverter.NULLABLE_INT_READER.read(reader));
reader.getNextToken();
break;
case 1993171791:
reader.getNextToken();
instance.setPriceLow(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
reader.getNextToken();
break;
case -1485001003:
reader.getNextToken();
instance.setPriceClose(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
reader.getNextToken();
break;
case -993319586:
reader.getNextToken();
instance.setVolumeTraded(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
reader.getNextToken();
break;
case 1192672851:
reader.getNextToken();
instance.setPriceOpen(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
reader.getNextToken();
break;
case -1865125427:
reader.getNextToken();
if (reader.wasNull()) instance.setTimeOpen(null);
else instance.setTimeOpen(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
reader.getNextToken();
break;
case -20824769:
reader.getNextToken();
if (reader.wasNull()) instance.setTimePeriodStart(null);
else instance.setTimePeriodStart(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
reader.getNextToken();
break;
default:
reader.getNextToken();
reader.skip();
}
while (reader.last() == ','){
reader.getNextToken();
switch(reader.fillName()) {
case -115896057:
reader.getNextToken();
instance.setSymbolId(com.dslplatform.json.StringConverter.READER.read(reader));
reader.getNextToken();
break;
case -564132972:
reader.getNextToken();
instance.setPeriodId(com.dslplatform.json.StringConverter.READER.read(reader));
reader.getNextToken();
break;
case 1304481546:
reader.getNextToken();
if (reader.wasNull()) instance.setTimePeriodEnd(null);
else instance.setTimePeriodEnd(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
reader.getNextToken();
break;
case -871869137:
reader.getNextToken();
if (reader.wasNull()) instance.setTimeClose(null);
else instance.setTimeClose(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
reader.getNextToken();
break;
case 1361572173:
reader.getNextToken();
instance.setType(com.dslplatform.json.StringConverter.READER.read(reader));
reader.getNextToken();
break;
case -1562081949:
reader.getNextToken();
instance.setPriceHigh(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
reader.getNextToken();
break;
case -888505390:
reader.getNextToken();
instance.setTradesCount(com.dslplatform.json.NumberConverter.NULLABLE_INT_READER.read(reader));
reader.getNextToken();
break;
case 1011085160:
reader.getNextToken();
instance.setSequence(com.dslplatform.json.NumberConverter.NULLABLE_INT_READER.read(reader));
reader.getNextToken();
break;
case 1993171791:
reader.getNextToken();
instance.setPriceLow(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
reader.getNextToken();
break;
case -1485001003:
reader.getNextToken();
instance.setPriceClose(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
reader.getNextToken();
break;
case -993319586:
reader.getNextToken();
instance.setVolumeTraded(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
reader.getNextToken();
break;
case 1192672851:
reader.getNextToken();
instance.setPriceOpen(com.dslplatform.json.NumberConverter.NULLABLE_DOUBLE_READER.read(reader));
reader.getNextToken();
break;
case -1865125427:
reader.getNextToken();
if (reader.wasNull()) instance.setTimeOpen(null);
else instance.setTimeOpen(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
reader.getNextToken();
break;
case -20824769:
reader.getNextToken();
if (reader.wasNull()) instance.setTimePeriodStart(null);
else instance.setTimePeriodStart(com.dslplatform.json.JavaTimeConverter.deserializeDateTime(reader));
reader.getNextToken();
break;
default:
reader.getNextToken();
reader.skip();
}
}
if (reader.last() != '}') throw reader.newParseError("Expecting '}' for object end");
}
}
}