You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: fritzdect.go
    path of file: ./repos/evcc/meter
    
    the code of the file until where you have to start completion: package meter

import (
	"github.com/evcc-io/evcc/api"
	"github.com/evcc-io/evcc/meter/fritzdect"
	"github.com/evcc-io/evcc/util"
)

// AVM FritzBox AHA interface specifications:
// https://avm.de/fileadmin/user_upload/Glob
    
func NewFritzDECTFromConfig(other map[string]interface{}) (api.Meter, error) {
	var cc fritzdect.Settings
	if err := util.DecodeOther(other, &cc); err != nil {
		return nil, err
	}

	if cc.User == "" || cc.Password == "" {
		return nil, api.ErrMissingCredentials
	}

	return fritzdect.NewConnection(cc.URI, cc.AIN, cc.User, cc.Password)
}