code: func expandVMwareUplinkLacpPolicy(d *schema.ResourceData) *types.VMwareUplinkLacpPolicy {
  	obj := &types.VMwareUplinkLacpPolicy{
  		Enable: structure.GetBoolPolicy(d, "lacp_enabled"),
  		Mode:   structure.GetStringPolicy(d, "lacp_mode"),
  	}
  
  	if structure.AllFieldsEmpty(obj) {
  		return nil
  	}
  	return obj
  }
docs: // expandVMwareUplinkLacpPolicy reads certain ResourceData keys and
  // returns a VMwareUplinkLacpPolicy.