SquintCustomType

@Serializable
data class SquintCustomType(val className: String, val members: List<SquintCustomTypeMember>) : SquintType

Data class to serialize a Klutter CustomType to JSON, formatted in a way which can be read by dart library Squint (https://pub.dev/packages/squint_json).

Example:

 {
"className": "MyResponse",
"members": [
{
"name": "a1",
"type": "int",
"nullable": false
},
{
"name": "a2",
"type": "String",
"nullable": true
}
]
}

Constructors

Link copied to clipboard
constructor(className: String, members: List<SquintCustomTypeMember>)

Properties

Link copied to clipboard
open override val className: String
Link copied to clipboard