quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

How to capture the user defined functions in JSON to generate the C# class files. using Quicktype.

Open ramkumar-venkat opened this issue 3 years ago • 0 comments

We are trying to create a JSON to capture the user defined functions. By using this data we need to generate a C# class file using quicktype. But I do not understand to create a JSON/JSON schema that can give the user defined methods. Below example shows the sample output C# file.

Example: namespace Demo {

public class X
{
	public List<double[]> z { get; set; }
	public string Id { get; set; }	
	}

	public X(){}

    	public X(X x)
    	{
        	Id = x.Id;
        	z = x.z
    	}
}

}

ramkumar-venkat avatar Apr 08 '22 06:04 ramkumar-venkat