def METHOD_NAME(row):
    """Create a resource type from a database resource row.
    Args:
        row (Resource): the database resource row.
    Returns:
        Resource: the concrete resource type.
    """
    parent = (
        METHOD_NAME(row.parent) if row.parent else None)
    return create_resource_from_json(row.type, parent, row.data)