@@ -1,10 +1,10 @@
package models
type Quiz struct {
- ID string
- Hash string
- Question *Question
- Answers []*Answer
- Correct *Answer
- Type int
+ ID string `json:"id"`
+ Hash string `json:"hash"`
+ Question *Question `json:"question"`
+ Answers []*Answer `json:"answers"`
+ Correct *Answer `json:"correct"`
+ Type int `json:"type"`
}