Skip to content
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

Function: Support create single file with static inner classes #60

Open
sonvp opened this issue May 12, 2017 · 5 comments
Open

Function: Support create single file with static inner classes #60

sonvp opened this issue May 12, 2017 · 5 comments

Comments

@sonvp
Copy link

sonvp commented May 12, 2017

Hi @robohorse . Instead of create separate file for each object. I want to output only one class object like the example below.

{
  "ongoing": {
    "frequency": "123",
    "weekTime": [
      [
        "Week 1 Wed 10:00am-12:00pm"
      ],
      [
        "Week 2 Thu 07:30am-09:30am"
      ]
    ]
  }
}
               |
               |
               |
               V

public class Test{

	private Ongoing ongoing;

	public static class Ongoing{
		private List<List<String>> weekTime;
		private String frequency;
	}
}


Can you support function above. Thank

@robohorse
Copy link
Owner

hmm...

@cgoodroe
Copy link

cgoodroe commented Sep 14, 2017

+1, personally interested in this combined with kotlin data classes

@billybong
Copy link

+1 for Kotlin data classes in one file. Thats how I generally create JSON domain classes due to Kotlins brevity.

@wallezhang
Copy link

+1 😄

@schrek1
Copy link

schrek1 commented Aug 29, 2019

+1 and insert generated code to selected place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants