function getPropertyFromObject(propertyName, node) {
  if (node && node.type === 'ObjectExpression') {
    for (const property of node.properties) {
      if (property.type === 'Property' && property.key.name === propertyName) {
        return property
      }
    }
  }
  return null
}
Gets the property of the Object node passed in that has the name specified.

@param {string} propertyName Name of the property to return.
@param {ASTNode} node The ObjectExpression node.
@returns {ASTNode} The Property node or null if not found.