-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library Support #258
Comments
@theapache64 Of course! It's easy to achieve that, If you have the interest, welcome to open a pull request. Or we will plan for it later TestConfig.setToTestInitState() |
HI @wuseal I was busy with some other work, that's why I closed the issue. Now am free and planning to develop the library, hence re-opening this issue. I need some clarification on how the architecture works. When you'll be free for a quick chat? |
Below given proposed API structure for the library val output = JsonToKotlinBuilder(input, "GlossResponse")
.setPropertyKeyword(PropertyKeyword.VAL)
.setPropertyType(PropertyType.NON_NULLABLE)
.setPropertyDefaultValueStrategy(PropertyDefaultValueStrategy.DONT_INIT_WITH_DEFAULT_VALUE)
.setAnnotation(Annotation.MOSHI_CODEGEN)
.setComment(true)
.setOrderByAlphabetic(true)
.setInnerClassModel(true)
.setMapType(true)
.setCreateAnnotationOnlyWhenNeeded(true)
.setIndent(4)
.setParentClassTemplate("MyParentClass")
.setKeepAnnotationOnClass(true)
.setKeepAnnotationOnClassAndroidX(true)
.setKeepAnnotationAndPropertyInSameLine(true)
.setParcelableSupport(true)
.setPropertyPrefix("MyPrefix")
.setPropertySuffix("MySuffix")
.setClassSuffix("MyClassSuffix")
.setForcePrimitiveTypeNonNullable(true)
.setForceInitDefaultValueWithOriginJsonValue(true)
.build() |
@theapache64 Wow! happy to hear your news. the proposed API seems good, a little update:
should be like this: Others seem no problem. |
Sure brother |
Is it possible to get a library version of the json-to-kotlin convertor where I'd pass the
JSON
string and get kotlin class string in return.The text was updated successfully, but these errors were encountered: