dsl_json.android.graphics.RectDslJsonConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsl-json-android Show documentation
Show all versions of dsl-json-android Show documentation
DSL Platform compatible Java JSON library (https://dsl-platform.com)
package dsl_json.android.graphics;
import com.dslplatform.json.AndroidGeomConverter;
import com.dslplatform.json.Configuration;
import com.dslplatform.json.DslJson;
public class RectDslJsonConverter implements Configuration {
@Override
public void configure(DslJson json) {
json.registerReader(android.graphics.Rect.class, AndroidGeomConverter.RECTANGLE_READER);
json.registerWriter(android.graphics.Rect.class, AndroidGeomConverter.RECTANGLE_WRITER);
}
}