// Code generated from JSON Schema using quicktype. DO NOT EDIT.
// To parse and unparse this JSON data, add this code to your project and do:
//
// myType, err := UnmarshalMyType(bytes)
// bytes, err = myType.Marshal()
package main
import "encoding/json"
func UnmarshalMyType(data []byte) (MyType, error) {
var r MyType
err := json.Unmarshal(data, &r)
return r, err
}
func (r *MyType) Marshal() ([]byte, error) {
return json.Marshal(r)
}
type MyType struct {
A string `json:"a"`
Arr []int64 `json:"arr"`
Nested Nested `json:"nested"`
}
type Nested struct {
A int64 `json:"a"`
B string `json:"b"`
}