// Map converts an hcl.IMap to a hcl.Map.
Map converts an hcl.IMap to a hcl.Map.
// Map converts an hcl . IMap to a hcl . Map .
func (m IMap) Map() (Map, error) {
	if len(m) == 0 {
		return nil, nil
	}
	out := make(Map, len(m))
	for k, v := range m {
		s, err := toString(k, false)
		if err != nil {
			return nil, errors.Wrap(err, "toString map key")
		}
		out[s] = v
	}
	return out, nil
}
func ( m IMap ) Map ( ) ( Map , error ) { if len ( m ) == 0 { return nil , nil } out := make ( Map , len ( m ) ) for k , v := range m { s , err := toString ( k , false ) if err != nil { return nil , errors . Wrap ( err , " " ) } out [ s ] = v } return out , nil }
Map converts an hcl.IMap to a hcl.Map.
Map converts an hcl . IMap to a hcl . Map .