func (a *AccountTag) Unmarshal(value []byte) error {
	elements, err := extractTagElements(value)
	if err != nil {
		return err
	}
	if len(elements) != 2 {
		return fmt.Errorf("%T: Malformed marshaled value", a)
	}
	a.Tag = string(elements[0])
	fields := bytes.Split(elements[1], []byte("/"))
	if len(fields) != 2 {
		return fmt.Errorf("%T: Malformed marshaled value", a)
	}
	a.BankID = string(fields[0])
	a.AccountID = string(fields[1])
	return nil
}
// Unmarshal unmarshals value into a
Unmarshal unmarshals value into a
// Unmarshal unmarshals value into a
func (a *AccountTag) Unmarshal(value []byte) error {
	elements, err := extractTagElements(value)
	if err != nil {
		return err
	}
	if len(elements) != 2 {
		return fmt.Errorf("%T: Malformed marshaled value", a)
	}
	a.Tag = string(elements[0])
	fields := bytes.Split(elements[1], []byte("/"))
	if len(fields) != 2 {
		return fmt.Errorf("%T: Malformed marshaled value", a)
	}
	a.BankID = string(fields[0])
	a.AccountID = string(fields[1])
	return nil
}
func ( a * AccountTag ) Unmarshal ( value [ ] byte ) error { elements , err := extractTagElements ( value ) if err != nil { return err } if len ( elements ) != 2 { return fmt . Errorf ( " " , a ) } a . Tag = string ( elements [ 0 ] ) fields := bytes . Split ( elements [ 1 ] , [ ] byte ( " " ) ) if len ( fields ) != 2 { return fmt . Errorf ( " " , a ) } a . BankID = string ( fields [ 0 ] ) a . AccountID = string ( fields [ 1 ] ) return nil }
Unmarshal unmarshals value into a
Unmarshal unmarshals value into a