public IEnumerable <MetadataCategory> Convert(MetadataModel source, IEnumerable <MetadataCategory> destination, ResolutionContext context) => source.Select(pair => new MetadataCategory { Name = pair.Key.ToString(), MetadataValues = context.Mapper.Map <List <MetadataValue> >(pair.Value) });