If the field is an array, then the field type will not have the as_dict method bound to it. The Structure describing the individual elements in the array will have the asdict method. Because of this, hasattr(type, "as_dict") will always return False.
If the field is an array, then the field type will not have the as_dict method bound to it. The Structure describing the individual elements in the array will have the asdict method. Because of this, hasattr(type, "as_dict") will always return False.