Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"glossary":{
"title":"example glossary",
"GlossDiv":{
"title":"S",
"GlossList":{
"GlossEntry":{
"ID":"SGML",
"SortAs":"SGML",
"GlossTerm":"Standard Generalized Markup Language",
"Acronym":"SGML",
"Abbrev":"ISO 8879:1986",
"GlossDef":{
"para":"A meta-markup language, used to create markup languages such as DocBook.",
"GlossSeeAlso":[
"GML",
"XML"
]
},
"GlossSee":"markup"
}
}
}
}
}
@nidhashafeef
Copy link

nidhashafeef commented Dec 21, 2019

package com.example.myapplication

data class Demo(var glossary:Glossary)
data class Glossary(var title:String,var GlossDiv:GlossDiv)
data class GlossDiv(var title:String,var GlossList:GlossList)
data class GlossList(var GlossEntry:GlossEntry)
data class GlossEntry(var ID:String,
                      var SortAs:String,
                      var GlossTerm:String,
                      var Acronym:String,
                      var Abbrev:String,
                      var GlossSee:String,
                      var GlossDef:GlossDef)
data class GlossDef(var para:String,
                    var GlossSeeAlso:ArrayList<String>)

@bunays
Copy link

bunays commented Dec 21, 2019

data class Demo(var glossary:Glossary)
data class Glossary(var title:String,var GlossDiv:DemoGlossDiv)
data class DemoGlossDiv(var title: String, var GlossList:DemoGlossList)
data class DemoGlossList(var GlossEntry:DemoGlossEntry
data class DemoGlossEntry(var id:String,var sortas:String,var glossterm:String,var acronym:String,var
abbrev:String var GlossEntry:DemoGlossDef) 
data class DemoGlossDef(var para:String, var GlossSeeAlso:ArrayList<String>)






@amruthav123
Copy link

amruthav123 commented Dec 21, 2019

kotlin
data class Student (var  glossary:Glossary)
data class Glossary(var title:String)
data class DemoGlossDiv(var glossDiv:GlossDiv)
data class GlossDiv(var title:String, var GlossList:DemoGlossList)
data class DemoGlossList(var GlossEntry:GlossEntry)
data class GlossEntry( var id:String,var SortAs:String,var GlossTerm:String,var Acronym:String,var Abbrev:String,var GlossDef:GlossDef)
data class GlossDef(var para:String,var GlossSeeAlso:ArrayList<String>)


@ShahmaHassan
Copy link

ShahmaHassan commented Dec 21, 2019

package com.example.android.myapplication

data class Student(var glossary: glossary)
data class glossary(var title: String,var GlossDiv:DemoGlossDiv )
data class DemoGlossDiv(var title: String,var GlossList:DemoGlossList )
data class DemoGlossList(var GlossEntry:DemoGlossEntry)
data class DemoGlossEntry(var ID:String,
                          var SortAs:String,
                          var GlossTerm:String,
                          var Acronym:String,
                          var Abbrev:String,
                          var GlossDef:DemoGlossDef,
                          var GlossSee:String)
data class  DemoGlossDef(var para:String,
                         var GlossSeeAlso:ArrayList<String>)

@ANJU15445
Copy link

ANJU15445 commented Dec 21, 2019

kotlin
package com.example.mynew

data class Gloss(var glossary: glossary )
data class glossary(var title:String ,var GlossDiv:demoGlossDiv)
data class demoGlossDiv(var title:String, 
                        var Glosslist:demoGlosslist)
data class demoGlosslist(var glossentry:demoglossentry)
data class demoglossentry(var ID:String,
                          var SortAs:String,
                          var GlossTerm:String,
                          var Acronym:String,
                          var Abbrev:String,
                          var glossDef:demoglossDef,
                          var glosssee:String)
data class demoglossDef(var para:String, var GlossSeeAlso:ArrayList<String>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment