Cook onion until it is tender. Mix onion with chicken. Layer the chicken, chilies, cheese on the bottom of 9” x 13 “baking dish. Mix together eggs, milk, flour and seasonings until smooth. Pour over the chicken layers. Bake at 350 degrees for 45-50 minutes until egg mixture is set and a toothpick comes out clean.