func NewNestedBlock(b *tfschema.NestedBlock, typeName string) *NestedBlock {
	block := NewBlock(&b.Block)
	return &NestedBlock{
		TypeName: typeName,
		Block:    *block,
		Nesting:  b.Nesting,
		MinItems: b.MinItems,
		MaxItems: b.MaxItems,
	}
}
NewNestedBlock creates a new NestedBlock instance.
package json
import (
	"github.com/hashicorp/terraform/configs/configschema"
	"github.com/minamijoyo/tfschema/tfschema"
)
type NestedBlock struct {
	TypeName string `json:"type_name"`
	Block
	Nesting configschema.NestingMode `json:"nesting"`
	MinItems int `json:"min_items"`
	MaxItems int `json:"max_items"`
}