function getMembersLayout( members ) {

	return Object.entries( members ).map( ( [ name, value ] ) => {

		if ( typeof value === 'string' ) {

			return { name, type: value, atomic: false };

		}

		return { name, type: value.type, atomic: value.atomic || false };

	} );

}
Generates a layout for struct members.
This function takes an object representing struct members and returns an array of member layouts.
Each member layout includes the member's name, type, and whether it is atomic.

@param {Object.<string, string|Object>} members - An object where keys are member names and values are either types (as strings) or objects with type and atomic properties.
@returns {Array.<{name: string, type: string, atomic: boolean}>} An array of member layouts.